Property | Type | Description | |
---|---|---|---|
$externalSheet | The "external" sheet | ||
$lastWrittenRowIndex | Index of the last written row | ||
$maxNumColumns | Maximum number of columns among all the written rows | ||
$sheetFilePointer | Pointer to the temporary sheet data file (e.g. worksheets-temp/sheet1.xml) | ||
$stringHelper | To help with string manipulation | ||
$stringsEscaper | Strings escaper | ||
$worksheetFilePath | Path to the XML file that will contain the sheet data |
Method | Description | |
---|---|---|
__construct ( |
||
addRow ( array $dataRow, |
Adds data to the worksheet. | |
close ( ) : void | Closes the worksheet | |
getExternalSheet ( ) : |
||
getLastWrittenRowIndex ( ) : integer | ||
getTableElementStartAsString ( ) : string | Returns the table XML root node as string. | |
getWorksheetFilePath ( ) : string |
Method | Description | |
---|---|---|
getCellXML ( mixed $cellValue, integer $styleIndex, integer $numTimesValueRepeated ) : string | Returns the cell XML content, given its value. | |
startSheet ( ) : void |
Prepares the worksheet to accept data
The XML file does not contain the " |
|
throwIfSheetFilePointerIsNotAvailable ( ) : void | Checks if the book has been created. Throws an exception if not created yet. |
public __construct ( |
||
$externalSheet | The associated "external" sheet | |
$worksheetFilesFolder | string | Temporary folder where the files to create the ODS will be stored |
protected getCellXML ( mixed $cellValue, integer $styleIndex, integer $numTimesValueRepeated ) : string | ||
$cellValue | mixed | The value to be written |
$styleIndex | integer | Index of the used style |
$numTimesValueRepeated | integer | Number of times the value is consecutively repeated |
return | string | The cell XML content |
public getExternalSheet ( ) : |
||
return | The "external" sheet |
public getLastWrittenRowIndex ( ) : integer | ||
return | integer | The index of the last written row |
public getTableElementStartAsString ( ) : string | |||||||||||||||||||||||||||||
return | string | node as string
Prepares the worksheet to accept data
The XML file does not contain the "
Checks if the book has been created. Throws an exception if not created yet.
Property Details
Index of the last written row
Maximum number of columns among all the written rows
Pointer to the temporary sheet data file (e.g. worksheets-temp/sheet1.xml)
|