Methods

__construct()

__construct(null | array | \Traversable $options) 

Parameters

$options

nullarray\Traversable

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

Returns the result of filtering $value

filter(mixed $value) : mixed

Will return null if $value is present in the black-list. If $value is NOT present then it will return $value.

Parameters

$value

mixed

Exceptions

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

Returns

mixed

Get the list of items to black-list

getList() : array

Returns

array

Retrieve options representing object state

getOptions() : array
Inherited

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

Returns

array

Returns whether the in_array() call should be "strict" or not.

getStrict() : boolean

See in_array docs.

Returns

boolean

hasPcreUnicodeSupport()

hasPcreUnicodeSupport() : bool
Inherited

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

Returns

bool

Set the list of items to black-list.

setList(array | \Traversable $list) 

Parameters

$list

array\Traversable

setOptions()

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

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

Parameters

$options

array\Traversable

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\Filter\self

Determine whether the in_array() call should be "strict" or not.

setStrict(bool $strict) 

See in_array docs.

Parameters

$strict

bool

isOptions()

isOptions(mixed $options) : bool
Inherited

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

Parameters

$options

mixed

Returns

bool

 Properties

 

$list

$list : array

 

Filter options

$options : array
Inherited

inherited_from \Zend\Filter\AbstractFilter::$$options
 

$strict

$strict : bool