TEST_SAMPLE_SIZE
TEST_SAMPLE_SIZE = 2048
Sample size to read to determine if it's HTML or not.
PhpSpreadsheet root directory
$readDataOnly : bool
Read data only? Identifies whether the Reader should only read data values for cells, and ignore any formatting information; or whether it should read both data and formatting.
$readEmptyCells : bool
Read empty cells? Identifies whether the Reader should read data values for cells all cells, or should ignore cells containing null value or empty string.
$includeCharts : bool
Read charts that are defined in the workbook? Identifies whether the Reader should read the definitions for any charts that exist in the workbook;.
$loadSheetsOnly : array
Restrict which sheets should be loaded? This property holds an array of worksheet names to be loaded. If null, then all worksheets will be loaded.
$readFilter : \PhpOffice\PhpSpreadsheet\Reader\IReadFilter
IReadFilter instance.
$securityScanner : \PhpOffice\PhpSpreadsheet\Reader\Security\XmlScanner
$inputEncoding : string
Input encoding.
$sheetIndex : int
Sheet index to read.
$formats : array
Formats.
setReadDataOnly(mixed $pValue) : \PhpOffice\PhpSpreadsheet\Reader\IReader
Set read data only Set to true, to advise the Reader only to read data values for cells, and to ignore any formatting information.
Set to false (the default) to advise the Reader to read both data and formatting for cells.
mixed | $pValue |
setReadEmptyCells(mixed $pValue) : \PhpOffice\PhpSpreadsheet\Reader\IReader
Set read empty cells Set to true (the default) to advise the Reader read data values for all cells, irrespective of value.
Set to false to advise the Reader to ignore cells containing a null value or an empty string.
mixed | $pValue |
getIncludeCharts() : bool
Read charts in workbook? If this is true, then the Reader will include any charts that exist in the workbook.
Note that a ReadDataOnly value of false overrides, and charts won't be read regardless of the IncludeCharts value. If false (the default) it will ignore any charts defined in the workbook file.
setIncludeCharts(mixed $pValue) : \PhpOffice\PhpSpreadsheet\Reader\IReader
Set read charts in workbook Set to true, to advise the Reader to include any charts that exist in the workbook.
Note that a ReadDataOnly value of false overrides, and charts won't be read regardless of the IncludeCharts value. Set to false (the default) to discard charts.
mixed | $pValue |
setLoadSheetsOnly(mixed $value) : \PhpOffice\PhpSpreadsheet\Reader\IReader
Set which sheets to load.
mixed | $value | This should be either an array of worksheet names to be loaded, or a string containing a single worksheet name. If NULL, then it tells the Reader to read all worksheets in the workbook |
codeCoverageIgnore |
---|
loadIntoExisting(string $pFilename, \PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet) : \PhpOffice\PhpSpreadsheet\Spreadsheet
Loads PhpSpreadsheet from file into PhpSpreadsheet instance.
string | $pFilename | |
\PhpOffice\PhpSpreadsheet\Spreadsheet | $spreadsheet |
None found |
loadFromString(string $content, ?\PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet = null) : \PhpOffice\PhpSpreadsheet\Spreadsheet
Spreadsheet from content.
string | $content | |
?\PhpOffice\PhpSpreadsheet\Spreadsheet | $spreadsheet |
None found |
None found |
setSheetIndex(int $pValue) : $this
Set sheet index.
int | $pValue | Sheet index |
None found |
getStyleColor( $value) : null|string
Check if has #, so we can get clean hex.
$value |
None found |
None found |
getBorderStyle(string $style) : null|string
Map html border style to PhpSpreadsheet border style.
string | $style |
None found |
None found |
setTableStartColumn(mixed $column) : mixed
mixed | $column |
None found |
None found |
None found |
flushCell(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, mixed $column, mixed $row, mixed $cellContent) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
mixed | $column | |
mixed | $row | |
mixed | $cellContent |
None found |
processDomElement(\DOMNode $element, \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent) : void
\DOMNode | $element | |
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent |
None found |
None found |
None found |
None found |
None found |
None found |
processDomElementBody(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child |
None found |
processDomElementTitle(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child | |
array | $attributeArray |
None found |
processDomElementSpanEtc(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child | |
array | $attributeArray |
None found |
processDomElementHr(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child | |
array | $attributeArray |
None found |
processDomElementBr(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child | |
array | $attributeArray |
None found |
processDomElementA(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child | |
array | $attributeArray |
None found |
processDomElementH1Etc(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child | |
array | $attributeArray |
None found |
processDomElementLi(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child | |
array | $attributeArray |
None found |
processDomElementImg(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child | |
array | $attributeArray |
None found |
processDomElementTable(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child | |
array | $attributeArray |
None found |
processDomElementTr(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child | |
array | $attributeArray |
None found |
processDomElementThTdOther(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child | |
array | $attributeArray |
None found |
processDomElementBgcolor(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
array | $attributeArray |
None found |
processDomElementWidth(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, string $column, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
string | $column | |
array | $attributeArray |
None found |
processDomElementHeight(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
array | $attributeArray |
None found |
processDomElementAlign(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
array | $attributeArray |
None found |
processDomElementVAlign(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
array | $attributeArray |
None found |
processDomElementDataFormat(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
array | $attributeArray |
None found |
processDomElementThTd(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, string $cellContent, \DOMElement $child, array $attributeArray) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
string | $cellContent | |
\DOMElement | $child | |
array | $attributeArray |
None found |
loadDocument(\DOMDocument $document, \PhpOffice\PhpSpreadsheet\Spreadsheet $spreadsheet) : \PhpOffice\PhpSpreadsheet\Spreadsheet
Loads PhpSpreadsheet from DOMDocument into PhpSpreadsheet instance.
\DOMDocument | $document | |
\PhpOffice\PhpSpreadsheet\Spreadsheet | $spreadsheet |
None found |
applyInlineStyle(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, int $row, string $column, array $attributeArray) : void
Apply inline css inline style.
NOTES : Currently only intended for td & th element, and only takes 'background-color' and 'color'; property with HEX color
TODO :
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
int | $row | |
string | $column | |
array | $attributeArray |
None found |
insertImage(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $sheet, string $column, int $row, array $attributes) : void
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $sheet | |
string | $column | |
int | $row | |
array | $attributes |
None found |
setBorderStyle(\PhpOffice\PhpSpreadsheet\Style\Style $cellStyle, string $styleValue, string $type) : void
\PhpOffice\PhpSpreadsheet\Style\Style | $cellStyle | |
string | $styleValue | |
string | $type |
None found |