class Content

分类管理

Traits

AppTrait

Pam Trait Pam 的验证, 设置, 获取

Properties

protected Resp $error error from  AppTrait
protected Resp $success success from  AppTrait
protected $pam from  PamTrait

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
getPam()

No description

from  PamTrait
$this|PamTrait
setPam(PamAccount|Authenticatable|int $pam)

Set Pam Account.

from  PamTrait
bool
checkPam()

检查 pam 用户

from  PamTrait
bool
checkPermission(string $permission_key)

检测当前用户是否存在权限

from  PamTrait
getItem()

No description

bool
establish(array $data, int $id = null)

编辑/创建分类

void
delete(int $id)

删除数据

bool
toggle(int $id)

展示/隐藏

void
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

in PamTrait at line 25
PamAccount getPam()

No description

Return Value

PamAccount

in PamTrait at line 36
$this|PamTrait setPam(PamAccount|Authenticatable|int $pam)

Set Pam Account.

Parameters

PamAccount|Authenticatable|int $pam 用户

Return Value

$this|PamTrait

in PamTrait at line 52
bool checkPam()

检查 pam 用户

Return Value

bool

in PamTrait at line 66
bool checkPermission(string $permission_key)

检测当前用户是否存在权限

Parameters

string $permission_key 权限KEY

Return Value

bool

at line 32
SysContent getItem()

No description

Return Value

SysContent

at line 46
bool establish(array $data, int $id = null)

编辑/创建分类

Parameters

array $data

传入数据
{string} title 名称
{int} parent_id 父级 ID
{string} type 类型

int $id ID

Return Value

bool

at line 86
void delete(int $id)

删除数据

Parameters

int $id 活动ID

Return Value

void

Exceptions

Exception

at line 97
bool toggle(int $id)

展示/隐藏

Parameters

int $id ID

Return Value

bool

at line 109
void init(int $id)

初始化

Parameters

int $id ID

Return Value

void