\app\common\library\printerDriver

小票打印机驱动 Class driver

Summary

Methods
Properties
Constants
__construct()
printTicket()
getError()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getEngineClass()
$printer
$engine
$engineList
N/A

Properties

$printer

$printer : 

Type

$engine

$engine : 

Type

$engineList

$engineList : array

Type

array — 打印机引擎列表

Methods

__construct()

__construct(  $printer) 

构造方法 Driver constructor.

Parameters

$printer

Throws

\app\common\exception\BaseException

printTicket()

printTicket(  $content) : boolean

执行打印请求

Parameters

$content

Returns

boolean

getError()

getError() : mixed

获取错误信息

Returns

mixed

getEngineClass()

getEngineClass() : mixed

获取当前的打印机引擎类

Throws

\app\common\exception\BaseException

Returns

mixed