\Pop\FilterFilterableTrait

Filterable trait

Summary

Methods
Properties
Constants
addFilter()
addFilters()
hasFilters()
getFilters()
clearFilters()
filterAll()
filter()
No public properties found
No constants found
No protected methods found
$filters
N/A
No private methods found
No private properties found
N/A

Properties

$filters

$filters : array

Form filters

Type

array

Methods

addFilter()

addFilter(mixed  $filter) : \Pop\Filter\FilterableTrait

Add filter

Parameters

mixed $filter

Throws

\InvalidArgumentException

Returns

\Pop\Filter\FilterableTrait

addFilters()

addFilters(array  $filters) : \Pop\Filter\FilterableTrait

Add filters

Parameters

array $filters

Returns

\Pop\Filter\FilterableTrait

hasFilters()

hasFilters() : boolean

Has filters

Returns

boolean

getFilters()

getFilters() : array

Get filters

Returns

array

filterAll()

filterAll(array  $values) : array

Filter all values, ignoring excludes

Parameters

array $values

Returns

array

filter()

filter(array  $values) : array

Filter values

Parameters

array $values

Returns

array