com\setasign\Konquadrat\Import\File
PhpSpreadsheetReader
File: /Konquadrat/src/Import/File/PhpSpreadsheetReader.php
Class hierarchy
Summary
Properties
$file
protected AbstractFileReader::$file
$headings
protected ?string[] AbstractFileReader::$headings
$options
protected AbstractFileReader::$options = array()
$row
protected PhpSpreadsheetReader::$row
$startRow
protected AbstractFileReader::$startRow
$worksheet
protected PhpSpreadsheetReader::$worksheet
Static Methods
factory()
public static AbstractFileReader::factory (
\com\setasign\Konquadrat\Object\Custom\ImportFileTplObject|\com\setasign\Konquadrat\Object\AbstractObject $importFileObject
): AbstractFileReaderParameters
- $importFileObject: \com\setasign\Konquadrat\Object\Custom\ImportFileTplObject|\com\setasign\Konquadrat\Object\AbstractObject
Exceptions
Methods
__construct()
public AbstractFileReader::__construct ()
Parameters
- $file: \com\setasign\SetaFramework\FileSystem\SavedFile
- $options: array
getIterator()
initReader()
Exceptions
Throws \com\setasign\Konquadrat\Exception
Throws \PhpOffice\PhpSpreadsheet\Reader\Exception
Throws \PhpOffice\PhpSpreadsheet\Exception
readHeadCells()
Parameters
- $cells: \Traversable
readOnlyHeadings()
This method reads the file but only the first few rows until a headline is found. This method should be much faster than readHeadings but after reading the headings you cannot read any further.
So if you need more than just the headings you shouldn't use this method!
