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

PrintConnector for passing print data to a file. More...

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

Public Member Functions

 __construct ($filename)
 Construct new connector, given a filename. More...
 
 __destruct ()
 Print connectors should cause a NOTICE if they are deconstructed when they have not been finalized.
 
 finalize ()
 Close file pointer.
 
 read ($len)
 Read data from the printer. More...
 
 write ($data)
 Write data to the file. More...
 

Protected Attributes

 $fp
 The file pointer to send data to.
 

Detailed Description

PrintConnector for passing print data to a file.

Constructor & Destructor Documentation

◆ __construct()

Mike42\Escpos\PrintConnectors\FilePrintConnector::__construct (   $filename)

Construct new connector, given a filename.

Parameters
string$filename

Member Function Documentation

◆ read()

Mike42\Escpos\PrintConnectors\FilePrintConnector::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\FilePrintConnector::write (   $data)

Write data to the file.

Parameters
string$data

Implements Mike42\Escpos\PrintConnectors\PrintConnector.


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