ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Reader for SpreadsheetML, the XML schema for Microsoft Office Excel 2003. More...
Public Member Functions | |
__construct () | |
Create a new Excel2003XML Reader instance. More... | |
canRead ($pFilename) | |
Can the current IReader read the file? More... | |
trySimpleXMLLoadString ($pFilename) | |
Check if the file is a valid SimpleXML. More... | |
listWorksheetNames ($filename) | |
Reads names of the worksheets from a file, without parsing the whole file to a Spreadsheet object. More... | |
listWorksheetInfo ($filename) | |
Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns). More... | |
load ($filename) | |
Loads Spreadsheet from file. More... | |
Public Member Functions inherited from PhpOffice\PhpSpreadsheet\Reader\BaseReader | |
__construct () | |
IReader constructor. More... | |
getReadDataOnly () | |
Read data only? If this is true, then the Reader will only read data values for cells, it will not read any formatting information. More... | |
setReadDataOnly ($pValue) | |
Set read data only Set to true, to advise the Reader only to read data values for cells, and to ignore any formatting information. More... | |
getReadEmptyCells () | |
Read empty cells? If this is true (the default), then the Reader will read data values for all cells, irrespective of value. More... | |
setReadEmptyCells ($pValue) | |
Set read empty cells Set to true (the default) to advise the Reader read data values for all cells, irrespective of value. More... | |
getIncludeCharts () | |
Read charts in workbook? If this is true, then the Reader will include any charts that exist in the workbook. More... | |
setIncludeCharts ($pValue) | |
Set read charts in workbook Set to true, to advise the Reader to include any charts that exist in the workbook. More... | |
getLoadSheetsOnly () | |
Get which sheets to load Returns either an array of worksheet names (the list of worksheets that should be loaded), or a null indicating that all worksheets in the workbook should be loaded. More... | |
setLoadSheetsOnly ($value) | |
Set which sheets to load. More... | |
setLoadAllSheets () | |
Set all sheets to load Tells the Reader to load all worksheets from the workbook. More... | |
getReadFilter () | |
Read filter. More... | |
setReadFilter (IReadFilter $pValue) | |
Set read filter. More... | |
getSecurityScanner () | |
Static Public Member Functions | |
static | xmlMappings () |
Protected Member Functions | |
parseCellComment (SimpleXMLElement $comment, array $namespaces, Spreadsheet $spreadsheet, string $columnID, int $rowID) | |
parseRichText (string $annotation) | |
Protected Member Functions inherited from PhpOffice\PhpSpreadsheet\Reader\BaseReader | |
openFile ($pFilename) | |
Open file for reading. More... | |
Protected Attributes | |
$styles = [] | |
Protected Attributes inherited from PhpOffice\PhpSpreadsheet\Reader\BaseReader | |
$readDataOnly = false | |
$readEmptyCells = true | |
$includeCharts = false | |
$loadSheetsOnly | |
$readFilter | |
$fileHandle | |
$securityScanner | |
Static Private Member Functions | |
static | getAttributes (?SimpleXMLElement $simple, string $node) |
Private Attributes | |
$fileContents = '' | |
Reader for SpreadsheetML, the XML schema for Microsoft Office Excel 2003.
PhpOffice\PhpSpreadsheet\Reader\Xml::__construct | ( | ) |
Create a new Excel2003XML Reader instance.
Implements PhpOffice\PhpSpreadsheet\Reader\IReader.
Definition at line 38 of file Xml.php.
References PhpOffice\PhpSpreadsheet\Reader\Security\XmlScanner\getInstance().
PhpOffice\PhpSpreadsheet\Reader\Xml::canRead | ( | $pFilename | ) |
Can the current IReader read the file?
string | $pFilename |
Implements PhpOffice\PhpSpreadsheet\Reader\IReader.
Definition at line 61 of file Xml.php.
References $data, $valid, and PhpOffice\PhpSpreadsheet\Shared\StringHelper\convertEncoding().
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xml\listWorksheetInfo(), PhpOffice\PhpSpreadsheet\Reader\Xml\listWorksheetNames(), and PhpOffice\PhpSpreadsheet\Reader\Xml\load().
|
staticprivate |
PhpOffice\PhpSpreadsheet\Reader\Xml::listWorksheetInfo | ( | $filename | ) |
Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns).
string | $filename |
Definition at line 169 of file Xml.php.
References $filename, $xml, PhpOffice\PhpSpreadsheet\Shared\File\assertFile(), PhpOffice\PhpSpreadsheet\Reader\Xml\canRead(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\stringFromColumnIndex(), and PhpOffice\PhpSpreadsheet\Reader\Xml\trySimpleXMLLoadString().
PhpOffice\PhpSpreadsheet\Reader\Xml::listWorksheetNames | ( | $filename | ) |
Reads names of the worksheets from a file, without parsing the whole file to a Spreadsheet object.
string | $filename |
Definition at line 137 of file Xml.php.
References $filename, $xml, PhpOffice\PhpSpreadsheet\Shared\File\assertFile(), PhpOffice\PhpSpreadsheet\Reader\Xml\canRead(), and PhpOffice\PhpSpreadsheet\Reader\Xml\trySimpleXMLLoadString().
PhpOffice\PhpSpreadsheet\Reader\Xml::load | ( | $filename | ) |
Loads Spreadsheet from file.
string | $filename |
Implements PhpOffice\PhpSpreadsheet\Reader\IReader.
Definition at line 243 of file Xml.php.
References $filename, $name, $style, $type, $xml, PhpOffice\PhpSpreadsheet\Spreadsheet\addDefinedName(), PhpOffice\PhpSpreadsheet\Shared\File\assertFile(), PhpOffice\PhpSpreadsheet\Reader\Xml\canRead(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\columnIndexFromString(), PhpOffice\PhpSpreadsheet\Cell\AddressHelper\convertFormulaToA1(), PhpOffice\PhpSpreadsheet\DefinedName\createInstance(), PhpOffice\PhpSpreadsheet\Spreadsheet\createSheet(), PhpOffice\PhpSpreadsheet\Spreadsheet\getActiveSheet(), PhpOffice\PhpSpreadsheet\Reader\BaseReader\getReadFilter(), PhpOffice\PhpSpreadsheet\Reader\Xml\parseCellComment(), PhpOffice\PhpSpreadsheet\Shared\Date\PHPToExcel(), PhpOffice\PhpSpreadsheet\Spreadsheet\setActiveSheetIndex(), PhpOffice\PhpSpreadsheet\Cell\Coordinate\stringFromColumnIndex(), PhpOffice\PhpSpreadsheet\Reader\Xml\trySimpleXMLLoadString(), PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_BOOL, PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_ERROR, PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_FORMULA, PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_NULL, PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_NUMERIC, and PhpOffice\PhpSpreadsheet\Cell\DataType\TYPE_STRING.
|
protected |
Definition at line 505 of file Xml.php.
References PhpOffice\PhpSpreadsheet\Spreadsheet\getActiveSheet(), and PhpOffice\PhpSpreadsheet\Reader\Xml\parseRichText().
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xml\load().
|
protected |
Definition at line 525 of file Xml.php.
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xml\parseCellComment().
PhpOffice\PhpSpreadsheet\Reader\Xml::trySimpleXMLLoadString | ( | $pFilename | ) |
Check if the file is a valid SimpleXML.
string | $pFilename |
Definition at line 114 of file Xml.php.
References $xml, and PhpOffice\PhpSpreadsheet\Settings\getLibXmlLoaderOptions().
Referenced by PhpOffice\PhpSpreadsheet\Reader\Xml\listWorksheetInfo(), PhpOffice\PhpSpreadsheet\Reader\Xml\listWorksheetNames(), and PhpOffice\PhpSpreadsheet\Reader\Xml\load().
|
static |
|
private |