ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Factory to create readers and writers easily. More...
Static Public Member Functions | |
static static static | createWriter (Spreadsheet $spreadsheet, $writerType) |
Create Writer. More... | |
static | createReader ($readerType) |
Create Reader. More... | |
static | load ($pFilename) |
Loads Spreadsheet from file using automatic Reader resolution. More... | |
static | identify ($pFilename) |
Identify file type using automatic Reader resolution. More... | |
static | createReaderForFile ($filename) |
Create Reader for file using automatic Reader resolution. More... | |
static | registerWriter ($writerType, $writerClass) |
Register a writer with its type and class name. More... | |
static | registerReader ($readerType, $readerClass) |
Register a reader with its type and class name. More... | |
Static Private Member Functions | |
static | getReaderTypeFromExtension ($filename) |
Guess a reader type from the file extension, if any. More... | |
Static Private Attributes | |
static | $readers |
static static | $writers |
Factory to create readers and writers easily.
It is not required to use this class, but it should make it easier to read and write files. Especially for reading files with an unknown format.
Definition at line 13 of file IOFactory.php.
|
static |
Create Reader.
string | $readerType | Example: Xlsx |
Definition at line 63 of file IOFactory.php.
|
static |
Create Reader for file using automatic Reader resolution.
string | $filename | The name of the spreadsheet file |
Definition at line 113 of file IOFactory.php.
References $filename, $reader, $type, and PhpOffice\PhpSpreadsheet\Shared\File\assertFile().
|
static |
Create Writer.
string | $writerType | Example: Xlsx |
Definition at line 44 of file IOFactory.php.
Referenced by PhpOffice\PhpSpreadsheet\Helper\Sample\write().
|
staticprivate |
Guess a reader type from the file extension, if any.
string | $filename |
Definition at line 150 of file IOFactory.php.
References $filename.
|
static |
Identify file type using automatic Reader resolution.
string | $pFilename | The name of the spreadsheet file to identify |
Definition at line 96 of file IOFactory.php.
References $reader.
|
static |
Loads Spreadsheet from file using automatic Reader resolution.
string | $pFilename | The name of the spreadsheet file |
Definition at line 82 of file IOFactory.php.
References $reader.
|
static |
Register a reader with its type and class name.
string | $readerType | |
string | $readerClass |
Definition at line 209 of file IOFactory.php.
|
static |
Register a writer with its type and class name.
string | $writerType | |
string | $writerClass |
Definition at line 194 of file IOFactory.php.
|
staticprivate |
Definition at line 15 of file IOFactory.php.
|
staticprivate |
Definition at line 26 of file IOFactory.php.