escpos-php
Public Member Functions | List of all members
Mike42\Escpos\PrintConnectors\MultiplePrintConnector Class Reference

Wrap multiple connectors up, to print to several printers at the same time. More...

Inheritance diagram for Mike42\Escpos\PrintConnectors\MultiplePrintConnector:
Inheritance graph
[legend]
Collaboration diagram for Mike42\Escpos\PrintConnectors\MultiplePrintConnector:
Collaboration graph
[legend]

Public Member Functions

 __construct (PrintConnector ... $connectors)
 
 finalize ()
 Finish using this print connector (close file, socket, send accumulated output, etc).
 
 read ($len)
 Read data from the printer. More...
 
 write ($data)
 Write data to the print connector. More...
 
 __destruct ()
 Print connectors should cause a NOTICE if they are deconstructed when they have not been finalized.
 

Detailed Description

Wrap multiple connectors up, to print to several printers at the same time.

Member Function Documentation

◆ read()

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

Read data from the printer.

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

Implements Mike42\Escpos\PrintConnectors\PrintConnector.

◆ write()

Mike42\Escpos\PrintConnectors\MultiplePrintConnector::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: