|
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 XLSX Writer php static string | $headerContentType = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' |
| 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 |
◆ addRows()
OpenSpout\Writer\AbstractWriter::addRows |
( |
array | $rows | ) |
|
|
finalinherited |
◆ addRowToWriter()
OpenSpout\Writer\AbstractWriterMultiSheets::addRowToWriter |
( |
Row | $row | ) |
|
|
protectedinherited |
◆ close()
OpenSpout\Writer\AbstractWriter::close |
( |
| ) |
|
|
finalinherited |
◆ closeWriter()
OpenSpout\Writer\AbstractWriterMultiSheets::closeWriter |
( |
| ) |
|
|
protectedinherited |
◆ createWorkbookManager()
OpenSpout\Writer\XLSX\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\AbstractWriter::setCreator |
( |
string | $creator | ) |
|
|
finalinherited |
◆ 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/XLSX/Writer.php