Methods

__construct()

__construct(\Zend\Filter\callable | array | \Traversable $callbackOrOptions, array $callbackParams) 

Parameters

$callbackOrOptions

\Zend\Filter\callablearray\Traversable

$callbackParams

array

Invoke filter as a command

__invoke(mixed $value) : mixed
Inherited

Proxies to filter()

inherited_from \Zend\Filter\AbstractFilter::__invoke()

Parameters

$value

mixed

Exceptions

\Zend\Filter\Exception\ExceptionInterface If filtering $value is impossible

Returns

mixed

Calls the filter per callback

filter(mixed $value) : mixed

Parameters

$value

mixed

Options for the set callable

Exceptions

\Zend\Filter\Exception\RuntimeException If filtering $value is impossible

Returns

mixedResult from the filter which was called

Returns the set callback

getCallback() : \Zend\Filter\callable

Returns

\Zend\Filter\callable

Get parameters for the callback

getCallbackParams() : mixed

Returns

mixed

Retrieve options representing object state

getOptions() : array
Inherited

inherited_from \Zend\Filter\AbstractFilter::getOptions()

Returns

array

hasPcreUnicodeSupport()

hasPcreUnicodeSupport() : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::hasPcreUnicodeSupport()

Returns

bool

Sets a new callback for this filter

setCallback(\Zend\Filter\callable $callback) : \Zend\Filter\self

Parameters

$callback

\Zend\Filter\callable

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\Filter\self

Sets parameters for the callback

setCallbackParams(mixed $params) : Callback

Parameters

$params

mixed

Returns

Callback

setOptions()

setOptions(array | \Traversable $options) : \Zend\Filter\AbstractFilter
Inherited

inherited_from \Zend\Filter\AbstractFilter::setOptions()

Parameters

$options

array\Traversable

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

isOptions()

isOptions(mixed $options) : bool
Inherited

inherited_from \Zend\Filter\AbstractFilter::isOptions()

Parameters

$options

mixed

Returns

bool

 Properties

 

Filter options

$options : array