|
|
const | MAX_COLUMNS_EXCEL = 16384 |
| |
|
const | XML_ATTRIBUTE_NUM_COLUMNS_REPEATED = 'table:number-columns-repeated' |
| |
|
const | XML_ATTRIBUTE_NUM_ROWS_REPEATED = 'table:number-rows-repeated' |
| | Definition of XML attribute used to parse data.
|
| |
|
const | XML_NODE_CELL = 'table:table-cell' |
| |
|
const | XML_NODE_ROW = 'table:table-row' |
| |
|
const | XML_NODE_TABLE = 'table:table' |
| | Definition of XML nodes names used to parse data.
|
| |
|
|
Helper CellValueFormatter | $cellValueFormatter |
| | Helper to format cell values.
|
| |
|
Row | $currentlyProcessedRow |
| | The currently processed row.
|
| |
|
InternalEntityFactory | $entityFactory |
| | Factory to create entities.
|
| |
|
bool | $hasAlreadyBeenRewound = false |
| | Whether the iterator has already been rewound once.
|
| |
|
bool | $hasAlreadyReadOneCellInCurrentRow = false |
| | Whether at least one cell has been read for the row currently being processed.
|
| |
|
bool | $hasReachedEndOfFile = false |
| | Indicates whether all rows have been read.
|
| |
|
Cell | $lastProcessedCell |
| | Last processed cell (because when reading cell at column N+1, cell N is processed)
|
| |
|
int | $lastRowIndexProcessed = 0 |
| | Last row index processed (one-based)
|
| |
|
int | $nextRowIndexToBeProcessed = 1 |
| | Row index to be processed next (one-based)
|
| |
|
int | $numColumnsRepeated = 1 |
| | Number of times the last cell value should be copied to the cells on its right.
|
| |
|
int | $numRowsRepeated = 1 |
| | Number of times the last processed row should be repeated.
|
| |
|
Row | $rowBuffer |
| | Buffer used to store the current row, while checking if there are more rows to read.
|
| |
|
RowManager | $rowManager |
| | Manages rows.
|
| |
|
bool | $shouldPreserveEmptyRows |
| | Whether empty rows should be returned or skipped.
|
| |
|
Box Spout Reader Common XMLProcessor | $xmlProcessor |
| | Helper Object to process XML nodes.
|
| |
|
Box Spout Reader Wrapper XMLReader | $xmlReader |
| | The XMLReader object that will help read sheet's XML data.
|
| |
◆ __construct()
- Parameters
-
| XMLReader | $xmlReader | XML Reader, positioned on the "<table:table>" element |
| OptionsManagerInterface | $optionsManager | Reader's options manager |
| CellValueFormatter | $cellValueFormatter | Helper to format cell values |
| XMLProcessor | $xmlProcessor | Helper to process XML files |
| RowManager | $rowManager | Manages rows |
| InternalEntityFactory | $entityFactory | Factory to create entities |
◆ current()
| Box\Spout\Reader\ODS\RowIterator::current |
( |
| ) |
|
◆ doesNeedDataForNextRowToBeProcessed()
| Box\Spout\Reader\ODS\RowIterator::doesNeedDataForNextRowToBeProcessed |
( |
| ) |
|
|
protected |
Returns whether we need data for the next row to be processed.
We DO need to read data if:
- we have not read any rows yet OR
- the next row to be processed immediately follows the last read row
- Return values
-
| bool | Whether we need data for the next row to be processed. |
◆ end()
| Box\Spout\Reader\ODS\RowIterator::end |
( |
| ) |
|
◆ getCell()
| Box\Spout\Reader\ODS\RowIterator::getCell |
( |
| $node | ) |
|
|
protected |
Returns the cell with (unescaped) correctly marshalled, cell value associated to the given XML node.
- Parameters
-
- Return values
-
| Cell | The cell set with the associated with the cell |
◆ getNumColumnsRepeatedForCurrentNode()
| Box\Spout\Reader\ODS\RowIterator::getNumColumnsRepeatedForCurrentNode |
( |
| $xmlReader | ) |
|
|
protected |
- Parameters
-
- Return values
-
| int | The value of "table:number-columns-repeated" attribute of the current node, or 1 if attribute missing |
◆ getNumRowsRepeatedForCurrentNode()
| Box\Spout\Reader\ODS\RowIterator::getNumRowsRepeatedForCurrentNode |
( |
| $xmlReader | ) |
|
|
protected |
- Parameters
-
- Return values
-
| int | The value of "table:number-rows-repeated" attribute of the current node, or 1 if attribute missing |
◆ isEmptyRow()
| Box\Spout\Reader\ODS\RowIterator::isEmptyRow |
( |
| $currentRow, |
|
|
| $lastReadCell ) |
|
protected |
After finishing processing each cell, a row is considered empty if it contains no cells or if the last read cell is empty.
After finishing processing each cell, the last read cell is not part of the row data yet (as we still need to apply the "num-columns-repeated" attribute).
- Parameters
-
| Row | $currentRow | |
| Cell | $lastReadCell | The last read cell |
- Return values
-
| bool | Whether the row is empty |
◆ key()
| Box\Spout\Reader\ODS\RowIterator::key |
( |
| ) |
|
◆ next()
| Box\Spout\Reader\ODS\RowIterator::next |
( |
| ) |
|
◆ processCellStartingNode()
| Box\Spout\Reader\ODS\RowIterator::processCellStartingNode |
( |
| $xmlReader | ) |
|
|
protected |
- Parameters
-
- Return values
-
| int | A return code that indicates what action should the processor take next |
◆ processRowEndingNode()
| Box\Spout\Reader\ODS\RowIterator::processRowEndingNode |
( |
| ) |
|
|
protected |
- Return values
-
| int | A return code that indicates what action should the processor take next |
◆ processRowStartingNode()
| Box\Spout\Reader\ODS\RowIterator::processRowStartingNode |
( |
| $xmlReader | ) |
|
|
protected |
- Parameters
-
- Return values
-
| int | A return code that indicates what action should the processor take next |
◆ processTableEndingNode()
| Box\Spout\Reader\ODS\RowIterator::processTableEndingNode |
( |
| ) |
|
|
protected |
- Return values
-
| int | A return code that indicates what action should the processor take next |
◆ readDataForNextRow()
| Box\Spout\Reader\ODS\RowIterator::readDataForNextRow |
( |
| ) |
|
|
protected |
◆ rewind()
| Box\Spout\Reader\ODS\RowIterator::rewind |
( |
| ) |
|
◆ valid()
| Box\Spout\Reader\ODS\RowIterator::valid |
( |
| ) |
|
The documentation for this class was generated from the following file:
- lib/spout/src/Spout/Reader/ODS/RowIterator.php