|
|
string string | $creator = 'OpenSpout' |
| | document creator
|
| |
|
resource file home runner work phpdoc phpdoc moodle lib openspout src Writer AbstractWriter php | $filePointer |
| | Pointer to the file/stream we will write to.
|
| |
|
|
string file home runner work phpdoc phpdoc moodle lib openspout src Writer ODS Writer php static string | $headerContentType = 'application/vnd.oasis.opendocument.spreadsheet' |
| | Content-Type value for the header.
|
| |
◆ addNewSheetAndMakeItCurrent()
| OpenSpout\Writer\AbstractWriterMultiSheets::addNewSheetAndMakeItCurrent |
( |
| ) |
|
|
finalinherited |
Creates a new sheet and make it the current sheet.
The data will now be written to this sheet.
- Return values
-
- Exceptions
-
| IOException | |
| WriterNotOpenedException | If the writer has not been opened yet |
◆ addRow()
| OpenSpout\Writer\AbstractWriter::addRow |
( |
Row | $row | ) |
|
|
finalinherited |
Appends a row to the end of the stream.
- Parameters
-
| Row | $row | The row to be appended to the stream |
- Exceptions
-
| Exception::WriterNotOpenedException | If the writer has not been opened yet |
| IOException | If unable to write data |
Implements OpenSpout\Writer\WriterInterface.
◆ addRows()
| OpenSpout\Writer\AbstractWriter::addRows |
( |
array | $rows | ) |
|
|
finalinherited |
Appends the rows to the end of the stream.
- Parameters
-
| Row[] | $rows | The rows to be appended to the stream |
- Exceptions
-
| InvalidArgumentException | If the input param is not valid |
| Exception::WriterNotOpenedException | If the writer has not been opened yet |
| IOException | If unable to write data |
Implements OpenSpout\Writer\WriterInterface.
◆ addRowToWriter()
| OpenSpout\Writer\AbstractWriterMultiSheets::addRowToWriter |
( |
Row | $row | ) |
|
|
protectedinherited |
◆ close()
| OpenSpout\Writer\AbstractWriter::close |
( |
| ) |
|
|
finalinherited |
◆ closeWriter()
| OpenSpout\Writer\AbstractWriterMultiSheets::closeWriter |
( |
| ) |
|
|
protectedinherited |
◆ createWorkbookManager()
| OpenSpout\Writer\ODS\Writer::createWorkbookManager |
( |
| ) |
|
|
protected |
◆ getCurrentSheet()
| OpenSpout\Writer\AbstractWriterMultiSheets::getCurrentSheet |
( |
| ) |
|
|
finalinherited |
Returns the current sheet.
- Return values
-
- Exceptions
-
| WriterNotOpenedException | If the writer has not been opened yet |
◆ getWrittenRowCount()
| OpenSpout\Writer\AbstractWriter::getWrittenRowCount |
( |
| ) |
|
|
finalinherited |
◆ openToBrowser() [1/2]
| OpenSpout\Writer\AbstractWriter::openToBrowser |
( |
| $outputFileName | ) |
|
|
finalinherited |
@codeCoverageIgnore
- Parameters
-
◆ openToBrowser() [2/2]
| OpenSpout\Writer\WriterInterface::openToBrowser |
( |
string | $outputFileName | ) |
|
|
inherited |
Initializes the writer and opens it to accept data.
By using this method, the data will be outputted directly to the browser.
- Parameters
-
| string | $outputFileName | Name of the output file that will contain the data. If a path is passed in, only the file name will be kept |
- Exceptions
-
◆ openWriter()
| OpenSpout\Writer\AbstractWriterMultiSheets::openWriter |
( |
| ) |
|
|
protectedinherited |
◆ setCreator()
| OpenSpout\Writer\ODS\Writer::setCreator |
( |
string | $creator | ) |
|
◆ setCurrentSheet()
| OpenSpout\Writer\AbstractWriterMultiSheets::setCurrentSheet |
( |
Sheet | $sheet | ) |
|
|
finalinherited |
Sets the given sheet as the current one.
New data will be written to this sheet. The writing will resume where it stopped (i.e. data won't be truncated).
- Parameters
-
| Sheet | $sheet | The sheet to set as current |
- Exceptions
-
| SheetNotFoundException | If the given sheet does not exist in the workbook |
| WriterNotOpenedException | If the writer has not been opened yet |
The documentation for this class was generated from the following file:
- lib/openspout/src/Writer/ODS/Writer.php