Documentation

FilterableTrait

Filterable trait

Tags
category

Pop

author

Nick Sagona, III dev@nolainteractive.com

copyright

Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com)

license

http://www.popphp.org/license New BSD License

version
4.0.0

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
throws
InvalidArgumentException
Return values
static

addFilters()

Add filters

public addFilters(array<string|int, mixed> $filters) : static
Parameters
$filters : array<string|int, mixed>
Return values
static

clearFilters()

Clear filters

public clearFilters() : static
Return values
static

filter()

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
Return values
bool

        
On this page

Search results