\app\common\library\printer\engineBasics

小票打印机驱动基类 Class Basics

Summary

Methods
Properties
Constants
__construct()
getError()
No public properties found
No constants found
printTicket()
$config
$times
$error
N/A
setContentText()
No private properties found
N/A

Properties

$config

$config : 

Type

$times

$times : 

Type

$error

$error : 

Type

Methods

__construct()

__construct(array  $config, integer  $times) 

构造函数 Basics constructor.

Parameters

array $config

打印机配置

integer $times

打印联数(次数)

getError()

getError() : mixed

返回错误信息

Returns

mixed

printTicket()

printTicket(  $content) : mixed

执行打印请求

Parameters

$content

Returns

mixed

setContentText()

setContentText() : string

创建打印的内容

Returns

string