\Pop\FilterFilter

Filter class

Summary

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

Properties

$callable

$callable : \Pop\Utils\CallableObject

Filter callable

Type

\Pop\Utils\CallableObject

$excludeByType

$excludeByType : array

Exclude by type

Type

array

$excludeByName

$excludeByName : array

Exclude by name

Type

array

Methods

__construct()

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

Constructor

Instantiate the form filter object

Parameters

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

setCallable()

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

Set callable

Parameters

mixed $callable

Returns

\Pop\Filter\AbstractFilter

setParams()

setParams(mixed  $params) : \Pop\Filter\AbstractFilter

Set params

Parameters

mixed $params

Returns

\Pop\Filter\AbstractFilter

setExcludeByName()

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

Set exclude by name

Parameters

mixed $excludeByName

Returns

\Pop\Filter\AbstractFilter

setExcludeByType()

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

Set exclude by type

Parameters

mixed $excludeByType

Returns

\Pop\Filter\AbstractFilter

getCallable()

getCallable() : \Pop\Utils\CallableObject

Get callable

Returns

\Pop\Utils\CallableObject

getParams()

getParams() : array

Get params

Returns

array

getExcludeByName()

getExcludeByName() : array

Get exclude by name

Returns

array

getExcludeByType()

getExcludeByType() : array

Get exclude by type

Returns

array

hasCallable()

hasCallable() : boolean

Has callable

Returns

boolean

hasParams()

hasParams() : boolean

Has params

Returns

boolean

hasExcludeByName()

hasExcludeByName() : boolean

Has exclude by name

Returns

boolean

hasExcludeByType()

hasExcludeByType() : boolean

Has exclude by type

Returns

boolean

filter()

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

Filter value

Parameters

mixed $value
string $name
mixed $type

Returns

mixed