

Public Member Functions | |
| __construct () | |
| clear () | |
| __destruct () | |
| finalize () | |
| getData () | |
| read ($len) | |
| write ($data) | |
Print connector that writes to nowhere, but allows the user to retrieve the buffered data. Used for testing.
| Mike42\Escpos\PrintConnectors\DummyPrintConnector::__construct | ( | ) |
Create new print connector
| Mike42\Escpos\PrintConnectors\DummyPrintConnector::__destruct | ( | ) |
Print connectors should cause a NOTICE if they are deconstructed when they have not been finalized.
Implements Mike42\Escpos\PrintConnectors\PrintConnector.
| Mike42\Escpos\PrintConnectors\DummyPrintConnector::finalize | ( | ) |
Finish using this print connector (close file, socket, send accumulated output, etc).
Implements Mike42\Escpos\PrintConnectors\PrintConnector.
| 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.8