Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
OpenSpout\Writer\Common\Creator\WriterFactory Class Reference

Static Public Member Functions

static createFromFile (string $path)
 This creates an instance of the appropriate writer, given the extension of the file to be written.
 

Member Function Documentation

◆ createFromFile()

static OpenSpout\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$pathThe path to the spreadsheet file. Supported extensions are .csv,.ods and .xlsx
Exceptions
OpenSpout\Common\Exception\UnsupportedTypeException

The documentation for this class was generated from the following file: