class Scope implements Renderable

Constants

QUERY_NAME

Properties

string $key
protected string $label
protected Collection $queries

Methods

__construct(string|int $key, string $label = '')

Scope constructor.

string
getLabel()

Get label.

array
condition()

Get model query conditions.

string
render()

Scope 因为涉及到刷新, 所以使用跳转的方式 这种方式和 layui 的监听tab 不同, 这种会在刷新页面, tab 不会保留刷新的参数

__call(string $method, array $arguments)

No description

Details

at line 36
__construct(string|int $key, string $label = '')

Scope constructor.

Parameters

string|int $key
string $label

at line 49
string getLabel()

Get label.

Return Value

string

at line 59
array condition()

Get model query conditions.

Return Value

array

at line 71
string render()

Scope 因为涉及到刷新, 所以使用跳转的方式 这种方式和 layui 的监听tab 不同, 这种会在刷新页面, tab 不会保留刷新的参数

Return Value

string

at line 84
Scope __call(string $method, array $arguments)

No description

Parameters

string $method
array $arguments

Return Value

Scope