PHP Интерфейс Mike42\Escpos\PrintConnectors\PrintConnector

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
__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).
read ( string $len ) : Data Read data from the printer.
write ( string $data ) Write data to the print connector.

Описание методов

__destruct() публичный Метод

Print connectors should cause a NOTICE if they are deconstructed when they have not been finalized.
public __destruct ( )

finalize() публичный Метод

Finish using this print connector (close file, socket, send accumulated output, etc).
public finalize ( )

read() публичный Метод

Read data from the printer.
public read ( string $len ) : Data
$len string Length of data to read.
Результат Data read from the printer, or false where reading is not possible.

write() публичный Метод

Write data to the print connector.
public write ( string $data )
$data string The data to write