class Version

App 版本

Traits

AppTrait

Properties

protected Resp $error error from  AppTrait
protected Resp $success success from  AppTrait
protected SysAppVersion $item
protected string $table
protected int $id

Methods

getError()

获取错误

from  AppTrait
bool
setError(string|MessageBag $error)

设置错误

from  AppTrait
getSuccess()

Get success messages;

from  AppTrait
bool
setSuccess(Resp|string $success)

No description

from  AppTrait
__construct()

No description

allowCopy()

No description

bool
establish($data, $id = null)

No description

bool
delete(int $id)

删除数据

bool
init(int $id)

初始化

Details

in AppTrait at line 32
Resp getError()

获取错误

Return Value

Resp

in AppTrait at line 45
bool setError(string|MessageBag $error)

设置错误

Parameters

string|MessageBag $error error

Return Value

bool

in AppTrait at line 82
Resp getSuccess()

Get success messages;

Return Value

Resp

in AppTrait at line 100
bool setSuccess(Resp|string $success)

No description

Parameters

Resp|string $success 设置的成功信息

Return Value

bool

at line 44
__construct()

No description

at line 49
Version allowCopy()

No description

Return Value

Version

at line 55
bool establish($data, $id = null)

No description

Parameters

$data
$id

Return Value

bool

at line 130
bool delete(int $id)

删除数据

Parameters

int $id 版本ID

Return Value

bool

at line 150
bool init(int $id)

初始化

Parameters

int $id 版本ID

Return Value

bool