FilterItem
abstract class FilterItem
Class AbstractFilter.
Properties
Collection | $group | ||
protected array|string | $id | Element id. |
|
protected string | $label | Label of presenter. |
|
protected array|string | $value | ||
protected array|string | $defaultValue | ||
protected string | $column | ||
protected Presenter|null | $presenter | Presenter object. |
|
protected string | $query | Query for filter. |
|
protected Filter | $parent | ||
protected string | $view |
Methods
AbstractFilter constructor.
是否可以渲染
Get siblings of current filter.
Get previous filter.
Get next filter.
Get query condition from filter.
No description
Render this filter.
No description
Set default value for filter.
Get element id.
Set element id.
Get column name of current filter.
Get value of current filter.
Setup default presenter.
Format label.
Format name.
Format id.
Build conditions of filter.
Build query condition of model relation.
Variables for filter view.
No description
No description
Details
at line 99
__construct($column, string $label = '')
AbstractFilter constructor.
at line 112
FilterItem
setParent(Filter $filter)
No description
at line 123
bool
isRender()
是否可以渲染
at line 135
FilterItem[]|mixed
siblings(null $index = null)
Get siblings of current filter.
at line 151
FilterItem[]|mixed
previous(int $step = 1)
Get previous filter.
at line 165
FilterItem[]|mixed
next(int $step = 1)
Get next filter.
at line 179
array|mixed|null|void
condition(array $inputs)
Get query condition from filter.
at line 199
Select
select(array|Collection $options = [])
Select filter.
at line 209
MultipleSelect
multipleSelect(array|Collection $options = [])
No description
at line 219
Radio
radio(array|Collection $options = [])
No description
at line 230
View|string
render()
Render this filter.
at line 245
mixed
__call($method, $params)
No description
at line 261
$this
default(null $default = null)
Set default value for filter.
at line 275
array|string
getId()
Get element id.
at line 287
FilterItem
setId(string $id)
Set element id.
at line 298
string
getColumn()
Get column name of current filter.
at line 310
array|string
getValue()
Get value of current filter.
at line 320
mixed
setPresenter(Presenter $presenter)
Set presenter object of filter.
at line 331
protected Text
setupDefaultPresenter()
Setup default presenter.
at line 343
protected string
formatLabel(string $label)
Format label.
at line 357
protected string
formatName(string $column)
Format name.
at line 383
protected array|string
formatId(string $column)
Format id.
at line 393
protected mixed
buildCondition()
Build conditions of filter.
at line 409
protected array
buildRelationQuery()
Build query condition of model relation.
at line 429
protected array
variables()
Variables for filter view.
at line 32
Text
url()
No description
at line 32
Text
email()
No description
at line 32
Text
integer()
No description
at line 32
Text
decimal(mixed $options)
No description
at line 32
Text
currency(mixed $options)
No description
at line 32
Text
percentage(mixed $options)
No description
at line 32
Text
ip()
No description
at line 32
Text
mac()
No description
at line 32
Text
mobile(mixed $mask)
No description
at line 32
Text
inputmask(mixed $options, mixed $icon)
No description
at line 32
Text
placeholder(mixed $placeholder)
No description