$readDataOnly
$readDataOnly : boolean
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.
$readFilter : \PhpOffice\PhpSpreadsheet\Reader\IReadFilter
IReadFilter instance.
$referenceHelper : \PhpOffice\PhpSpreadsheet\ReferenceHelper
ReferenceHelper instance.
$theme : \PhpOffice\PhpSpreadsheet\Reader\Xlsx\Theme
Xlsx\Theme instance.
setReadDataOnly(boolean $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.
boolean | $pValue |
setReadEmptyCells(boolean $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.
boolean | $pValue |
getIncludeCharts() : boolean
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(boolean $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.
boolean | $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 |
setLoadAllSheets() : \PhpOffice\PhpSpreadsheet\Reader\IReader
Set all sheets to load Tells the Reader to load all worksheets from the workbook.
getReadFilter() : \PhpOffice\PhpSpreadsheet\Reader\IReadFilter
Read filter.
setReadFilter(\PhpOffice\PhpSpreadsheet\Reader\IReadFilter $pValue) : \PhpOffice\PhpSpreadsheet\Reader\IReader
Set read filter.
\PhpOffice\PhpSpreadsheet\Reader\IReadFilter | $pValue |
load(string $pFilename) : \PhpOffice\PhpSpreadsheet\Spreadsheet
Loads Spreadsheet from file.
string | $pFilename |
setColumnAttributes(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $docSheet, string $column, array $columnAttributes)
Set Worksheet column attributes by attributes array passed.
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $docSheet | |
string | $column | A, B, ... DX, ... |
array | $columnAttributes | array of attributes (indexes are attribute name, values are value) 'xfIndex', 'visible', 'collapsed', 'outlineLevel', 'width', ... ? |
setRowAttributes(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $docSheet, integer $row, array $rowAttributes)
Set Worksheet row attributes by attributes array passed.
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $docSheet | |
integer | $row | 1, 2, 3, ... 99, ... |
array | $rowAttributes | array of attributes (indexes are attribute name, values are value) 'xfIndex', 'visible', 'collapsed', 'outlineLevel', 'rowHeight', ... ? |
readStyle(\PhpOffice\PhpSpreadsheet\Style\Style $docStyle, \SimpleXMLElement|\stdClass $style)
\PhpOffice\PhpSpreadsheet\Style\Style | $docStyle | |
\SimpleXMLElement|\stdClass | $style |
readBorder(\PhpOffice\PhpSpreadsheet\Style\Border $docBorder, \SimpleXMLElement $eleBorder)
\PhpOffice\PhpSpreadsheet\Style\Border | $docBorder | |
\SimpleXMLElement | $eleBorder |
parseRichText( $is) : \PhpOffice\PhpSpreadsheet\RichText\RichText
$is |
readRibbon(\PhpOffice\PhpSpreadsheet\Spreadsheet $excel, mixed $customUITarget, mixed $zip)
\PhpOffice\PhpSpreadsheet\Spreadsheet | $excel | |
mixed | $customUITarget | |
mixed | $zip |
readHyperLinkDrawing(\PhpOffice\PhpSpreadsheet\Worksheet\Drawing $objDrawing, \SimpleXMLElement $cellAnchor, array $hyperlinks)
\PhpOffice\PhpSpreadsheet\Worksheet\Drawing | $objDrawing | |
\SimpleXMLElement | $cellAnchor | |
array | $hyperlinks |
readProtection(\PhpOffice\PhpSpreadsheet\Spreadsheet $excel, \SimpleXMLElement $xmlWorkbook)
\PhpOffice\PhpSpreadsheet\Spreadsheet | $excel | |
\SimpleXMLElement | $xmlWorkbook |
readFormControlProperties(\PhpOffice\PhpSpreadsheet\Spreadsheet $excel, \ZipArchive $zip, $dir, $fileWorksheet, $docSheet, array $unparsedLoadedData)
\PhpOffice\PhpSpreadsheet\Spreadsheet | $excel | |
\ZipArchive | $zip | |
$dir | ||
$fileWorksheet | ||
$docSheet | ||
array | $unparsedLoadedData |
readPrinterSettings(\PhpOffice\PhpSpreadsheet\Spreadsheet $excel, \ZipArchive $zip, $dir, $fileWorksheet, $docSheet, array $unparsedLoadedData)
\PhpOffice\PhpSpreadsheet\Spreadsheet | $excel | |
\ZipArchive | $zip | |
$dir | ||
$fileWorksheet | ||
$docSheet | ||
array | $unparsedLoadedData |
castXsdBooleanToBool(string $xsdBoolean) : boolean
Convert an 'xsd:boolean' XML value to a PHP boolean value.
A valid 'xsd:boolean' XML value can be one of the following four values: 'true', 'false', '1', '0'. It is case sensitive.
Note that just doing '(bool) $xsdBoolean' is not safe, since '(bool) "false"' returns true.
string | $xsdBoolean | An XML string value of type 'xsd:boolean' |
Boolean value
readColumnsAndRowsAttributes(\SimpleXMLElement $xmlSheet, \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $docSheet)
Read columns and rows attributes from XML and set them on the worksheet.
\SimpleXMLElement | $xmlSheet | |
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $docSheet |