escpos-php
 All Classes Namespaces Functions Variables Pages
Public Member Functions | List of all members
Mike42\Escpos\PrintConnectors\PrintConnector Interface Reference
Inheritance diagram for Mike42\Escpos\PrintConnectors\PrintConnector:
Inheritance graph
[legend]

Public Member Functions

 __destruct ()
 
 finalize ()
 
 read ($len)
 
 write ($data)
 

Detailed Description

Interface passed to Escpos class for receiving print data. Print connectors are responsible for transporting this to the actual printer.

Constructor & Destructor Documentation

Mike42\Escpos\PrintConnectors\PrintConnector::__destruct ( )

Member Function Documentation

Mike42\Escpos\PrintConnectors\PrintConnector::finalize ( )
Mike42\Escpos\PrintConnectors\PrintConnector::read (   $len)

Read data from the printer.

Parameters
string$lenLength of data to read.
Returns
Data read from the printer, or false where reading is not possible.

Implemented in Mike42\Escpos\PrintConnectors\WindowsPrintConnector, Mike42\Escpos\PrintConnectors\CupsPrintConnector, Mike42\Escpos\PrintConnectors\ApiPrintConnector, Mike42\Escpos\PrintConnectors\DummyPrintConnector, and Mike42\Escpos\PrintConnectors\FilePrintConnector.

Mike42\Escpos\PrintConnectors\PrintConnector::write (   $data)

The documentation for this interface was generated from the following file: