FilterPlugin
class FilterPlugin implements Structable
Traits
Properties
protected Collection | $scopes | 全局范围 | from UseScopes |
protected Collection | $items | 表单内的表单条目集合 |
Methods
mixed
scope(string $key, string $label)
添加全局范围, 在添加全局范围之后, 如果不传入 Scope, 则默认为第一个 Scope
from
UseScopes
__construct()
No description
Collection
items()
获取表单的所有字段
FormItem|$this
__call(string $method, array $arguments = [])
Generate items and append to filter list
struct()
返回结构 规则解析参考 : https://github.com/yiminghe/async-validator
void
action(int $width = 4, bool $export = false)
按钮的宽度(默认 4), 这里不会处理按钮的位置
bool
getEnableExport()
是否启用了导出
array
prepare(string $type = 'params')
根据不同的类型返回不同的查询条件
startsWith(mixed $column, mixed $label)
前半部分匹配
Details
in
UseScopes at line 24
mixed
scope(string $key, string $label)
添加全局范围, 在添加全局范围之后, 如果不传入 Scope, 则默认为第一个 Scope
in
UseScopes at line 36
Collection
getScopes()
Get all filter scopes.
in
UseScopes at line 45
Collection
getScopesStruct()
范围结构
in
UseScopes at line 57
Scope|null
getCurrentScope()
获取当前的Scope, 支持未传入
at line 61
__construct()
No description
at line 72
FilterPlugin
addItem(FilterItem $item)
添加搜索条件
at line 82
Collection
items()
获取表单的所有字段
at line 96
FormItem|$this
__call(string $method, array $arguments = [])
Generate items and append to filter list
at line 120
struct()
返回结构 规则解析参考 : https://github.com/yiminghe/async-validator
at line 142
void
action(int $width = 4, bool $export = false)
按钮的宽度(默认 4), 这里不会处理按钮的位置
at line 153
bool
getEnableExport()
是否启用了导出
at line 164
array
prepare(string $type = 'params')
根据不同的类型返回不同的查询条件
at line 44
Equal
equal(mixed $column, mixed $label)
相等
at line 44
NotEqual
notEqual(mixed $column, mixed $label)
不等
at line 44
Like
like(mixed $column, mixed $label)
匹配搜索
at line 44
StartsWith
startsWith(mixed $column, mixed $label)
前半部分匹配
at line 44
EndsWith
endsWith(mixed $column, mixed $label)
后半部分匹配
at line 44
Gt
gt(mixed $column, mixed $label)
大于
at line 44
Gte
gte(mixed $column, mixed $label)
大于等于
at line 44
Lt
lt(mixed $column, mixed $label)
小于
at line 44
Lte
lte(mixed $column, mixed $label)
小于
at line 44
In
in(mixed $column, mixed $label)
包含
at line 44
NotIn
notIn(mixed $column, mixed $label)
不包含
at line 44
Between
between(mixed $column, mixed $label)
介于...