FilterableTrait
Filterable trait
Tags
Table of Contents
Properties
- $filters : array<string|int, mixed>
- Form filters
Methods
- addFilter() : static
- Add filter
- addFilters() : static
- Add filters
- clearFilters() : static
- Clear filters
- filter() : mixed
- Filter values
- filterAll() : array<string|int, mixed>
- Filter all values, ignoring excludes
- getFilters() : array<string|int, mixed>
- Get filters
- hasFilters() : bool
- Has filters
Properties
$filters
Form filters
protected
array<string|int, mixed>
$filters
= []
Methods
addFilter()
Add filter
public
addFilter(mixed $filter) : static
Parameters
- $filter : mixed
Tags
Return values
staticaddFilters()
Add filters
public
addFilters(array<string|int, mixed> $filters) : static
Parameters
- $filters : array<string|int, mixed>
Return values
staticclearFilters()
Clear filters
public
clearFilters() : static
Return values
staticfilter()
Filter values
public
abstract filter(mixed $values) : mixed
Parameters
- $values : mixed
filterAll()
Filter all values, ignoring excludes
public
filterAll(array<string|int, mixed> $values) : array<string|int, mixed>
Parameters
- $values : array<string|int, mixed>
Return values
array<string|int, mixed>getFilters()
Get filters
public
getFilters() : array<string|int, mixed>
Return values
array<string|int, mixed>hasFilters()
Has filters
public
hasFilters() : bool