|
| static | createFromFile (string $path) |
| | This creates an instance of the appropriate writer, given the extension of the file to be written.
|
| |
| static | createFromType ($writerType) |
| | This creates an instance of the appropriate writer, given the type of the file to be written.
|
| |
◆ createFromFile()
| static Box\Spout\Writer\Common\Creator\WriterFactory::createFromFile |
( |
string | $path | ) |
|
|
static |
This creates an instance of the appropriate writer, given the extension of the file to be written.
- Parameters
-
| string | $path | The path to the spreadsheet file. Supported extensions are .csv,.ods and .xlsx |
- Exceptions
-
- Return values
-
◆ createFromType()
| static Box\Spout\Writer\Common\Creator\WriterFactory::createFromType |
( |
| $writerType | ) |
|
|
static |
This creates an instance of the appropriate writer, given the type of the file to be written.
- Parameters
-
| string | $writerType | Type of the writer to instantiate |
- Exceptions
-
- Return values
-
The documentation for this class was generated from the following file:
- lib/spout/src/Spout/Writer/Common/Creator/WriterFactory.php