PHP Class Box\Spout\Writer\ODS\Writer

Inheritance: extends Box\Spout\Writer\AbstractMultiSheetsWriter
Afficher le fichier Open project: box/spout Class Usage Examples

Protected Properties

Свойство Type Description
$book The workbook for the ODS file
$headerContentType Content-Type value for the header
$tempFolder Temporary folder where the files to create the ODS will be stored

Méthodes publiques

Méthode Description
setTempFolder ( string $tempFolder ) : Writer Sets a custom temporary folder for creating intermediate files/folders.

Méthodes protégées

Méthode Description
addRowToWriter ( array $dataRow, Style $style ) : void Adds data to the currently opened writer.
closeWriter ( ) : void Closes the writer, preventing any additional writing.
getWorkbook ( ) : Box\Spout\Writer\ODS\Internal\Workbook
openWriter ( ) : void Configures the write and sets the current sheet pointer to a new sheet.

Method Details

addRowToWriter() protected méthode

If shouldCreateNewSheetsAutomatically option is set to true, it will handle pagination with the creation of new worksheets if one worksheet has reached its maximum capicity.
protected addRowToWriter ( array $dataRow, Style $style ) : void
$dataRow array Array containing data to be written. Example $dataRow = ['data1', 1234, null, '', 'data5'];
$style Box\Spout\Writer\Style\Style Style to be applied to the row.
Résultat void

closeWriter() protected méthode

Closes the writer, preventing any additional writing.
protected closeWriter ( ) : void
Résultat void

getWorkbook() protected méthode

protected getWorkbook ( ) : Box\Spout\Writer\ODS\Internal\Workbook
Résultat Box\Spout\Writer\ODS\Internal\Workbook The workbook representing the file to be written

openWriter() protected méthode

Configures the write and sets the current sheet pointer to a new sheet.
protected openWriter ( ) : void
Résultat void

setTempFolder() public méthode

This must be set before opening the writer.
public setTempFolder ( string $tempFolder ) : Writer
$tempFolder string Temporary folder where the files to create the ODS will be stored
Résultat Writer

Property Details

$book protected_oe property

The workbook for the ODS file
protected $book

$headerContentType protected_oe static_oe property

Content-Type value for the header
protected static $headerContentType

$tempFolder protected_oe property

Temporary folder where the files to create the ODS will be stored
protected $tempFolder