|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Factory to create readers and writers easily. More...
Collaboration diagram for PhpOffice\PhpSpreadsheet\IOFactory:Static Public Member Functions | |
| static | createWriter (Spreadsheet $spreadsheet, $writerType) |
| Create Writer\IWriter. More... | |
| static | createReader ($readerType) |
| Create Reader\IReader. More... | |
| static | load ($pFilename) |
| Loads Spreadsheet from file using automatic Reader\IReader resolution. More... | |
| static | identify ($pFilename) |
| Identify file type using automatic Reader\IReader resolution. More... | |
| static | createReaderForFile ($filename) |
| Create Reader\IReader for file using automatic Reader\IReader 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 | $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\IReader.
| string | $readerType | Example: Xlsx |
Definition at line 63 of file IOFactory.php.
Referenced by PhpOffice\PhpSpreadsheet\IOFactory\createReaderForFile().
Here is the caller graph for this function:
|
static |
Create Reader\IReader for file using automatic Reader\IReader resolution.
| string | $filename | The name of the spreadsheet file |
Definition at line 113 of file IOFactory.php.
References $filename, $reader, $type, PhpOffice\PhpSpreadsheet\Shared\File\assertFile(), PhpOffice\PhpSpreadsheet\IOFactory\createReader(), and PhpOffice\PhpSpreadsheet\IOFactory\getReaderTypeFromExtension().
Referenced by PhpOffice\PhpSpreadsheet\IOFactory\identify(), and PhpOffice\PhpSpreadsheet\IOFactory\load().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Create Writer\IWriter.
| string | $writerType | Example: Xlsx |
Definition at line 44 of file IOFactory.php.
Referenced by PhpOffice\PhpSpreadsheet\Helper\Sample\write().
Here is the caller graph for this function:
|
staticprivate |
Guess a reader type from the file extension, if any.
| string | $filename |
Definition at line 150 of file IOFactory.php.
References $filename.
Referenced by PhpOffice\PhpSpreadsheet\IOFactory\createReaderForFile().
Here is the caller graph for this function:
|
static |
Identify file type using automatic Reader\IReader resolution.
| string | $pFilename | The name of the spreadsheet file to identify |
Definition at line 96 of file IOFactory.php.
References $reader, and PhpOffice\PhpSpreadsheet\IOFactory\createReaderForFile().
Here is the call graph for this function:
|
static |
Loads Spreadsheet from file using automatic Reader\IReader resolution.
| string | $pFilename | The name of the spreadsheet file |
Definition at line 82 of file IOFactory.php.
References $reader, and PhpOffice\PhpSpreadsheet\IOFactory\createReaderForFile().
Here is the call graph for this function:
|
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.