| escpos-php

- Main Page
- Related Pages
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

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:
[legend]
Collaboration diagram for Mike42\Escpos\PrintConnectors\ApiPrintConnector:
[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 | $len | Length 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 | $data | The data to write

Implements Mike42\Escpos\PrintConnectors\PrintConnector.

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

- C:/www/aplusnet/incahellas.com/public_html/lib/escpos-php-development/src/Mike42/Escpos/PrintConnectors/ApiPrintConnector.php