Methods

Sets filter options

__construct(array | \Zend\Filter\Traversable $options) 

Parameters

$options

array\Zend\Filter\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

Filter a datetime string by normalizing it to the filters specified format

filter(string $value) : string

Parameters

$value

string

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

string

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

Set the format string accepted by date() to use when formatting a string

setFormat(string $format) : \Zend\Filter\self

Parameters

$format

string

Returns

\Zend\Filter\self

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

isOptions()

isOptions(mixed $options) : bool
Inherited

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

Parameters

$options

mixed

Returns

bool

Normalize the provided value to a formatted string

normalizeDateTime(string | int | \DateTime $value) : string

Parameters

$value

stringint\DateTime

Returns

string

 Properties

 

A valid format string accepted by date()

$format : string

 

Filter options

$options : array
Inherited

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