\Pop\Form\FilterAbstractFilter

Abstract form filter class

Summary

Methods
Properties
Constants
__construct()
setCallable()
setParams()
setExcludeByType()
setExcludeByName()
getCallable()
getParams()
getExcludeByType()
getExcludeByName()
hasCallable()
hasParams()
hasExcludeByType()
hasExcludeByName()
filter()
No public properties found
No constants found
No protected methods found
$callable
$params
$excludeByType
$excludeByName
N/A
No private methods found
No private properties found
N/A

Properties

$callable

$callable : mixed

Filter callable

Type

mixed

$params

$params : array

Parameters

Type

array

$excludeByType

$excludeByType : array

Exclude by type

Type

array

$excludeByName

$excludeByName : array

Exclude by name

Type

array

Methods

__construct()

__construct(callable  $callable, mixed  $params = null, mixed  $excludeByType = null, mixed  $excludeByName = null) 

Constructor

Instantiate the form filter object

Parameters

callable $callable
mixed $params
mixed $excludeByType
mixed $excludeByName

setCallable()

setCallable(callable  $callable) : \Pop\Form\Filter\AbstractFilter

Set callable

Parameters

callable $callable

Returns

\Pop\Form\Filter\AbstractFilter

setExcludeByType()

setExcludeByType(mixed  $excludeByType) : \Pop\Form\Filter\AbstractFilter

Set exclude by type

Parameters

mixed $excludeByType

Returns

\Pop\Form\Filter\AbstractFilter

setExcludeByName()

setExcludeByName(mixed  $excludeByName) : \Pop\Form\Filter\AbstractFilter

Set exclude by name

Parameters

mixed $excludeByName

Returns

\Pop\Form\Filter\AbstractFilter

getCallable()

getCallable() : callable

Get callable

Returns

callable

getParams()

getParams() : array

Get params

Returns

array

getExcludeByType()

getExcludeByType() : array

Get exclude by type

Returns

array

getExcludeByName()

getExcludeByName() : array

Get exclude by name

Returns

array

hasCallable()

hasCallable() : boolean

Has callable

Returns

boolean

hasParams()

hasParams() : boolean

Has params

Returns

boolean

hasExcludeByType()

hasExcludeByType() : boolean

Has exclude by type

Returns

boolean

hasExcludeByName()

hasExcludeByName() : boolean

Has exclude by name

Returns

boolean

filter()

filter(mixed  $value, mixed  $type = null, string  $name = null) : mixed

Filter value

Parameters

mixed $value
mixed $type
string $name

Returns

mixed