Property | Type | Description | |
---|---|---|---|
$escaper | Used to unescape XML data | ||
$sharedStringsHelper | Helper to work with shared strings | ||
$shouldFormatDates | Whether date/time values should be returned as PHP objects or be formatted as strings | ||
$styleHelper | Helper to work with styles |
Method | Description | |
---|---|---|
__construct ( |
||
extractAndFormatNodeValue ( DOMNode $node ) : string | integer | float | boolean | DateTime | null | Returns the (unescaped) correctly marshalled, cell value associated to the given XML node. |
Method | Description | |
---|---|---|
formatBooleanCellValue ( string $nodeValue ) : boolean | Returns the cell Boolean value from a specific node's Value. | |
formatDateCellValue ( string $nodeValue ) : DateTime | string | null | Returns a cell's PHP Date value, associated to the given stored nodeValue. | |
formatExcelTimestampValue ( float $nodeValue, integer $cellStyleId ) : DateTime | null | Returns a cell's PHP Date value, associated to the given timestamp. | |
formatExcelTimestampValueAsDateValue ( float $nodeValue, integer $cellStyleId ) : DateTime | string | null | Returns a cell's PHP Date value, associated to the given timestamp. | |
formatExcelTimestampValueAsTimeValue ( float $nodeValue, integer $cellStyleId ) : DateTime | string | Returns a cell's PHP DateTime value, associated to the given timestamp. | |
formatInlineStringCellValue ( DOMNode $node ) : string | Returns the cell String value where string is inline. | |
formatNumericCellValue ( string $nodeValue, integer $cellStyleId ) : integer | float | DateTime | null | Returns the cell Numeric value from string of nodeValue. | |
formatSharedStringCellValue ( string $nodeValue ) : string | Returns the cell String value from shared-strings file using nodeValue index. | |
formatStrCellValue ( string $nodeValue ) : string | Returns the cell String value, where string is stored in value node. | |
getVNodeValue ( DOMNode $node ) : string | Returns the cell's string value from a node's nested value node |
public __construct ( |
||
$sharedStringsHelper | Helper to work with shared strings | |
$styleHelper | Helper to work with styles | |
$shouldFormatDates | boolean | Whether date/time values should be returned as PHP objects or be formatted as strings |
protected formatBooleanCellValue ( string $nodeValue ) : boolean | ||
$nodeValue | string | |
return | boolean | The value associated with the cell |
protected formatInlineStringCellValue ( DOMNode $node ) : string | ||
$node | DOMNode | |
return | string | The value associated with the cell (null when the cell has an error) |
protected formatStrCellValue ( string $nodeValue ) : string | ||
$nodeValue | string | |
return | string | The value associated with the cell (null when the cell has an error) |
protected getVNodeValue ( DOMNode $node ) : string | ||
$node | DOMNode | |
return | string | The value associated with the cell |
protected $shouldFormatDates |