PHP Interface Mike42\Escpos\PrintConnectors\PrintConnector

Datei anzeigen Open project: mike42/escpos-php Interface Usage Examples

Public Methods

Method Description
__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.

Method Details

__destruct() public method

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

finalize() public method

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

read() public method

Read data from the printer.
public read ( string $len ) : Data
$len string Length of data to read.
return Data read from the printer, or false where reading is not possible.

write() public method

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