PHP 인터페이스 Mike42\Escpos\PrintConnectors\PrintConnector

파일 보기 프로젝트 열기: mike42/escpos-php 0 사용 예제들

공개 메소드들

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

메소드 상세

__destruct() 공개 메소드

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

finalize() 공개 메소드

Finish using this print connector (close file, socket, send accumulated output, etc).
public finalize ( )

read() 공개 메소드

Read data from the printer.
public read ( string $len ) : Data
$len string Length of data to read.
리턴 Data read from the printer, or false where reading is not possible.

write() 공개 메소드

Write data to the print connector.
public write ( string $data )
$data string The data to write