Replies: 3 comments 4 replies
-
Loader Flags would include (but aren't limited to)
|
Beta Was this translation helpful? Give feedback.
-
I've just been aware of this. I need to ignore empty (null) cells. I've found that currently are forced to $nullValue in rangeToArray function, with no chance to ignore (without modifying some parts of the logic). I wonder if you can do anything at current mainstream branch, regardless any formal solution for next major branch. Also, this would save memory and processing. Anyway, my suggestion is to have a setter, but not limited to it, for any of the options you mention. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay. Your suggestion effectively avoided empty cells/rows according to params. Now, regarding the topic, I wonder if you've thought about a scenario where xls(x) (or whatever) file(s) are just read (i.e., no phpoffice writes) and maybe just load the "reader components" only (if ever possible) to save some memory and, eventually, increase speed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Before version
1.19.0
, if you wanted to control the elements that were loaded or saved (such as readDataOnly, readEmptyCells, or including Charts), it was necessary to call a setter method on an instantiated Reader or Writer, e.g.Version
1.19.0
introduced flags to theload()
orsave()
call for a Reader or Writer as an alternative to having to call those getters and setters.Or directly in the
IOFactory
load()
methodalthough this is currently limited to the
LOAD_WITH_CHARTS
option.For the version
2.0
release, I'm considering dropping all of those getters and setters as a bc-break, and switching purely to load/save flags; but also extending the scope of those flags to provide more controls (particularly for the load) combining multiple flags in a manner similar to the way PHP itself allows combining multiple flags for sort() or file_put_contents() e.g.This applies only to options that are
boolean
in nature, so specifying to load only one worksheet from the file, or apply a read filter would still require using setter methods.5 votes ·
Beta Was this translation helpful? Give feedback.
All reactions