|
| | 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 (string $outputFileName) |
| | Initializes the writer and opens it to accept data.
|
| |
|
| openToFile (string $outputFilePath) |
| |
| | setCreator (string $creator) |
| | Set document creator.
|
| |
◆ addRow()
| OpenSpout\Writer\WriterInterface::addRow |
( |
Row | $row | ) |
|
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 |
Implemented in OpenSpout\Writer\AbstractWriter.
◆ addRows()
| OpenSpout\Writer\WriterInterface::addRows |
( |
array | $rows | ) |
|
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 |
Implemented in OpenSpout\Writer\AbstractWriter.
◆ close()
| OpenSpout\Writer\WriterInterface::close |
( |
| ) |
|
◆ getWrittenRowCount()
| OpenSpout\Writer\WriterInterface::getWrittenRowCount |
( |
| ) |
|
◆ openToBrowser()
| OpenSpout\Writer\WriterInterface::openToBrowser |
( |
string | $outputFileName | ) |
|
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
-
◆ setCreator()
| OpenSpout\Writer\WriterInterface::setCreator |
( |
string | $creator | ) |
|
The documentation for this interface was generated from the following file:
- lib/openspout/src/Writer/WriterInterface.php