\app\api\serviceCart

Summary

Methods
Properties
Constants
__construct()
add()
get()
edit()
delete()
getError()
No public properties found
No constants found
save()
setError()
$_error
$cookie
$expire
$prefix
$list
N/A
No private methods found
No private properties found
N/A

Properties

$_error

$_error : null

错误信息

Type

null

$cookie

$cookie : string

保存名称

Type

string

$expire

$expire

保存时间

$prefix

$prefix : string

前缀

Type

string

$list

$list : null

保存类容

Type

null

Methods

__construct()

__construct() : mixed

Returns

mixed —

add()

add( $data = []) : bool

添加数据

Parameters

$data

Returns

bool —

get()

get(mixed  $sel = []) : void

获取数据

Parameters

mixed $sel

edit()

edit( $id,  $t,  $val = null) : bool|void

修改数值

Parameters

$id
$t
$val

直接修改的值

Returns

bool|void —

delete()

delete(array-key  $data = []) : bool

删除或者清空

Parameters

array-key $data

Returns

bool —

getError()

getError() : \app\cms\service\type

获取错误信息

Returns

\app\cms\service\type —

save()

save() : void

保存数据

setError()

setError( $error) : \app\cms\service\Auth

设置错误信息

Parameters

$error

错误信息

Returns

\app\cms\service\Auth —