|
escpos-php
|
Print connector that writes to nowhere, but allows the user to retrieve the buffered data. More...


Public Member Functions | ||||
| __construct () | ||||
| Create new print connector. | ||||
| clear () | ||||
| __destruct () | ||||
| Print connectors should cause a NOTICE if they are deconstructed when they have not been finalized. | ||||
| finalize () | ||||
| Finish using this print connector (close file, socket, send accumulated output, etc). | ||||
| getData () | ||||
| read ($len) | ||||
Read data from the printer.
| ||||
| write ($data) | ||||
| Write data to the print connector. More... | ||||
Print connector that writes to nowhere, but allows the user to retrieve the buffered data.
Used for testing.
| Mike42\Escpos\PrintConnectors\DummyPrintConnector::getData | ( | ) |
| string data which the printer will provide on next Mike42\Escpos\PrintConnectors\DummyPrintConnector::read | ( | $len | ) |
Read data from the printer.
| string | $len | Length of data to read. |
Implements Mike42\Escpos\PrintConnectors\PrintConnector.
| Mike42\Escpos\PrintConnectors\DummyPrintConnector::write | ( | $data | ) |
Write data to the print connector.
| string | $data | The data to write |
Implements Mike42\Escpos\PrintConnectors\PrintConnector.
1.8.13