Moodle PHP Documentation 4.1
Moodle 4.1.19+ (Build: 20250711) (5f47dc23ffc)
Box\Spout\Reader\Common\Creator\ReaderEntityFactory Class Reference

Static Public Member Functions

static createCSVReader ()
 This creates an instance of a CSV reader.
 
static createODSReader ()
 This creates an instance of a ODS reader.
 
static createReaderFromFile (string $path)
 Creates a reader by file extension.
 
static createXLSXReader ()
 This creates an instance of a XLSX reader.
 

Member Function Documentation

◆ createCSVReader()

static Box\Spout\Reader\Common\Creator\ReaderEntityFactory::createCSVReader ( )
static

This creates an instance of a CSV reader.

Return values
Box\Spout\Reader\CSV\Reader

◆ createODSReader()

static Box\Spout\Reader\Common\Creator\ReaderEntityFactory::createODSReader ( )
static

This creates an instance of a ODS reader.

Return values
Box\Spout\Reader\ODS\Reader

◆ createReaderFromFile()

static Box\Spout\Reader\Common\Creator\ReaderEntityFactory::createReaderFromFile ( string $path)
static

Creates a reader by file extension.

Parameters
string$pathThe path to the spreadsheet file. Supported extensions are .csv, .ods and .xlsx
Exceptions
Box\Spout\Common\Exception\UnsupportedTypeException
Return values
ReaderInterface

◆ createXLSXReader()

static Box\Spout\Reader\Common\Creator\ReaderEntityFactory::createXLSXReader ( )
static

This creates an instance of a XLSX reader.

Return values
Box\Spout\Reader\XLSX\Reader

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