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

Public Member Functions

 __construct ($host, $printerId, $apiToken)
 
 __destruct ()
 
 read ($len)
 
 write ($data)
 
- Public Member Functions inherited from Mike42\Escpos\PrintConnectors\PrintConnector
 finalize ()
 

Protected Attributes

 $stream
 
 $httpClient
 
 $printerId
 
 $apiToken
 

Constructor & Destructor Documentation

Mike42\Escpos\PrintConnectors\ApiPrintConnector::__construct (   $host,
  $printerId,
  $apiToken 
)

Construct new connector

Parameters
string$host
string$printerId
string$apiToken
Mike42\Escpos\PrintConnectors\ApiPrintConnector::__destruct ( )

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

Implements Mike42\Escpos\PrintConnectors\PrintConnector.

Member Function Documentation

Mike42\Escpos\PrintConnectors\ApiPrintConnector::read (   $len)

Read data from the printer.

Parameters
string$lenLength of data to read.
Returns
string Data read from the printer.

Implements Mike42\Escpos\PrintConnectors\PrintConnector.

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

Write data to the print connector.

Parameters
string$dataThe data to write

Implements Mike42\Escpos\PrintConnectors\PrintConnector.


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