Skip to content

Commit

Permalink
ITST-16517: XLSX Reader cuts off leading zeros
Browse files Browse the repository at this point in the history
- Update CHANGELOG.md and README.md
  • Loading branch information
adirfische committed May 7, 2019
1 parent 5a7a9f9 commit 38628f0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
30 changes: 29 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,37 @@
### v.0.7.4 2019-05-07
- Added the option to use alphabetical column names (A, B, AA, ZX) instead of numeric indexes in returned row contents, using the parameter "OutputColumnNames".
- Fixed a bug that caused leading zeros in text cell content to get removed if the cell was set to text via an apostrophe prefix.

### v.0.7.3 2019-03-25
- Fixed an issue that prevented empty rows from being properly output in all appropriate cases.

### v.0.7.2 2019-03-14
- Fixed an issue that caused format parsing to cease working for some files.

### v.0.7.1 2019-02-27
- New configuration parameters to control automatic re-formatting of found Date/Time values: forceDateFormat, forceTimeFormat, forceDateTimeFormat
- Improved handling of potential errors when working with subdirectories of the configured temporary directory
- Fixed composer.json lacking ext-xmlreader requirement

### v.0.7.0 2019-02-05
- Improved support for different XLSX file generators:
- Improved awareness of XML namespaces.
- Improved support for newer OOXML editions:
- Namespace URIs from newer versions of the OOXML standard are now recognized and handled accordingly.
- Dropped requirement for SimpleXMLElement.
- Minor improvements in handling used document resources.

### v.0.6.3 2018-12-04
- Bugfix: Check if current row, that is to be read, is also the one which the read() function takes, return empty row if not.

### v.0.6.2 2018-11-20
- Bugfix: differentiate between internal sheet ID and positioning ordering of the sheet within the document

### v.0.6.1 2018-05-16
- Removed unneccessary test files.
- Minor code quality improvements.

### v.0.6.0 2018-05-01

- Added option 'SkipEmptyCells' in order to consider or not possible empty values in cells.
- Added option 'CustomFormats' to define and overwrite format values.
- Ensure deletion of temporary files after run.
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,16 @@ foreach ($sheets as $index => $sheet_data) {
$reader->close();
```

As extra configuration options we have:
Extra configuration options available when constructing a new Reader() object:
- TempDir: provided temporary directory (used for unzipping all files like Styles.xml, Worksheet.xml...) must be writable and accessible by the XLSX Reader.
- SkipEmptyCells: will skip empty values within any cell. If an entire row does not contain any value, only one empty (NULL) entry will be returned.
- ReturnDateTimeObjects: will not return formatted date-time strings, DateTime objects instead.
- SharedStringsConfiguration: explained in "Notes about library performance".
- CustomFormats: matrix that will overwrite any format read by the parser. Array format must match the BUILT-IN formats list documented by Microsoft.
- ForceDateFormat: A date format that will be used for all date values read from the document.
- ForceTimeFormat: A time format that will be used for all time values read from the document.
- ForceDateTimeFormat: A datetime format that will be used for all datetime values read from the document.
- OutputColumnNames: If true, read data will be returned using alphabetical column indexes (A, B, AA, ZX, ...) instead of numeric indexes.

If a sheet is changed to the same that is currently open, the position in the file still reverts to the beginning, so as to conform
to the same behavior as when changed to a different sheet.
Expand Down

0 comments on commit 38628f0

Please sign in to comment.