Group
class Group extends FilterItem
Properties
Collection | $group | from FilterItem | |
protected array|string | $id | Element id. |
from FilterItem |
protected string | $label | Label of presenter. |
from FilterItem |
protected array|string | $value | from FilterItem | |
protected array|string | $defaultValue | from FilterItem | |
protected string | $column | from FilterItem | |
protected Presenter|null | $presenter | Presenter object. |
from FilterItem |
protected string | $query | Query for filter. |
from FilterItem |
protected Filter | $parent | from FilterItem | |
protected string | $view | from FilterItem | |
mixed | $input | Input value from presenter. |
|
protected Closure|null | $builder | ||
protected string | $name |
Methods
No description
No description
No description
Initialize a group filter.
Join a query to group.
Details
at line 35
__construct($column, string $label = '', Closure $builder = null)
Group constructor.
in
FilterItem at line 112
FilterItem
setParent(Filter $filter)
No description
in
FilterItem at line 123
bool
isRender()
是否可以渲染
in
FilterItem at line 135
FilterItem[]|mixed
siblings(null $index = null)
Get siblings of current filter.
in
FilterItem at line 151
FilterItem[]|mixed
previous(int $step = 1)
Get previous filter.
in
FilterItem at line 165
FilterItem[]|mixed
next(int $step = 1)
Get next filter.
at line 165
array|mixed|null|void
condition(array $inputs)
No description
in
FilterItem at line 199
Select
select(array|Collection $options = [])
Select filter.
in
FilterItem at line 209
MultipleSelect
multipleSelect(array|Collection $options = [])
No description
in
FilterItem at line 219
Radio
radio(array|Collection $options = [])
No description
at line 202
View|string
render()
No description
in
FilterItem at line 245
mixed
__call($method, $params)
No description
in
FilterItem at line 261
$this
default(null $default = null)
Set default value for filter.
in
FilterItem at line 275
array|string
getId()
Get element id.
in
FilterItem at line 287
FilterItem
setId(string $id)
Set element id.
in
FilterItem at line 298
string
getColumn()
Get column name of current filter.
in
FilterItem at line 310
array|string
getValue()
Get value of current filter.
in
FilterItem at line 320
mixed
setPresenter(Presenter $presenter)
Set presenter object of filter.
in
FilterItem at line 331
protected Text
setupDefaultPresenter()
Setup default presenter.
in
FilterItem at line 343
protected string
formatLabel(string $label)
Format label.
in
FilterItem at line 357
protected string
formatName(string $column)
Format name.
in
FilterItem at line 383
protected array|string
formatId(string $column)
Format id.
in
FilterItem at line 393
protected mixed
buildCondition()
Build conditions of filter.
in
FilterItem at line 409
protected array
buildRelationQuery()
Build query condition of model relation.
at line 187
array
variables()
No description
in
FilterItem at line 32
Text
url()
No description
in
FilterItem at line 32
Text
email()
No description
in
FilterItem at line 32
Text
integer()
No description
in
FilterItem at line 32
Text
decimal(mixed $options)
No description
in
FilterItem at line 32
Text
currency(mixed $options)
No description
in
FilterItem at line 32
Text
percentage(mixed $options)
No description
in
FilterItem at line 32
Text
ip()
No description
in
FilterItem at line 32
Text
mac()
No description
in
FilterItem at line 32
Text
mobile(mixed $mask)
No description
in
FilterItem at line 32
Text
inputmask(mixed $options, mixed $icon)
No description
in
FilterItem at line 32
Text
placeholder(mixed $placeholder)
No description
at line 59
Group
equal(string $label = '', string $operator = '=')
Filter out equal
records.
at line 75
Group
notEqual(string $label = '')
Filter out not equal
records.
at line 87
Group
gt(string $label = '')
Filter out greater then
records.
at line 99
Group
lt(string $label = '')
Filter out less then
records.
at line 129
Group
like(string $label = '', string $operator = 'like')
Specify a where like query.
at line 145
Group
contains(string $label = '')
Alias of like
method.
at line 157
Group
ilike(string $label = '')
Specify a where ilike query.
at line 218
Group
nlt(string $label = '')
Filter out not less then
records.
at line 230
Group
ngt(string $label = '')
Filter out not greater than
records.
at line 242
Group
match(string $label = '')
Filter out records that match the regex.
at line 256
Group
startWith(string $label = '')
Filter out records which starts with input query.
at line 272
Group
endWith(string $label = '')
Filter out records which ends with input query.
at line 284
protected
initialize()
Initialize a group filter.
at line 301
protected $this
joinGroup(string $label, array $condition)
Join a query to group.