|
| addRow (Row $row) |
| Appends a row to the end of the stream.
|
|
| addRows (array $rows) |
| Appends the rows to the end of the stream.
|
|
| close () |
| Closes the writer.
|
|
| getWrittenRowCount () |
|
| openToBrowser ($outputFileName) |
| @codeCoverageIgnore
|
|
| openToBrowser (string $outputFileName) |
| Initializes the writer and opens it to accept data.
|
|
| openToFile ($outputFilePath) |
|
| openToFile (string $outputFilePath) |
|
| setCreator (string $creator) |
| Set document creator.
|
|
|
| addRowToWriter (Row $row) |
| Adds a row to the currently opened writer.
|
|
| closeWriter () |
| Closes the streamer, preventing any additional writing.
|
|
| openWriter () |
| Opens the streamer and makes it ready to accept data.
|
|
|
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.
|
|
|
static string string | $headerContentType |
| Content-Type value for the header - to be defined by child class.
|
|
◆ addRow()
OpenSpout\Writer\AbstractWriter::addRow |
( |
Row | $row | ) |
|
|
final |
◆ addRows()
OpenSpout\Writer\AbstractWriter::addRows |
( |
array | $rows | ) |
|
|
final |
◆ addRowToWriter()
OpenSpout\Writer\AbstractWriter::addRowToWriter |
( |
Row | $row | ) |
|
|
abstractprotected |
◆ close()
OpenSpout\Writer\AbstractWriter::close |
( |
| ) |
|
|
final |
◆ closeWriter()
OpenSpout\Writer\AbstractWriter::closeWriter |
( |
| ) |
|
|
abstractprotected |
◆ getWrittenRowCount()
OpenSpout\Writer\AbstractWriter::getWrittenRowCount |
( |
| ) |
|
|
final |
◆ openToBrowser() [1/2]
OpenSpout\Writer\AbstractWriter::openToBrowser |
( |
| $outputFileName | ) |
|
|
final |
@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\AbstractWriter::openWriter |
( |
| ) |
|
|
abstractprotected |
◆ setCreator()
OpenSpout\Writer\AbstractWriter::setCreator |
( |
string | $creator | ) |
|
|
final |
The documentation for this class was generated from the following file:
- lib/openspout/src/Writer/AbstractWriter.php