class Word

敏感词表

Traits

AppTrait

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

Properties

protected Resp $error error from  AppTrait
protected Resp $success success from  AppTrait
protected $pam from  PamTrait
protected SysSensitiveWord|null $item
protected string $wordTable

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

No description

bool
establish(array $data)

编辑/创建

bool
delete(array|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
__construct()

No description

at line 42
bool establish(array $data)

编辑/创建

Parameters

array $data

Return Value

bool

at line 89
bool delete(array|int $id)

删除数据

Parameters

array|int $id 敏感词id

Return Value

bool