package Default
inherited_from \Zend\Filter\AbstractFilter

 Methods

Sets filter options

__construct(array|\Traversable $options = null

Parameters

$options

array\Traversable

Invoke filter as a command

__invoke(mixed $value) : mixed
Inherited

Proxies to \filter()

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(\DateTime|string|integer $value) : string

Parameters

$value

\DateTimestringinteger

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

string

Retrieve options representing object state

getOptions() : array
Inherited

Returns

array

hasPcreUnicodeSupport()

hasPcreUnicodeSupport() : boolean
InheritedStatic
deprecated Since 2.1.0

Returns

boolean

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

setFormat(string $format) : \Zend\Filter\DateTimeFormatter
fluent This method is part of a fluent interface and will return the same instance

Parameters

$format

string

Returns

\Zend\Filter\DateTimeFormatter

setOptions()

setOptions(array|\Traversable $options) : \Zend\Filter\DateTimeFormatter
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$options

array\Traversable

Exceptions

\Zend\Filter\Exception\InvalidArgumentException

Returns

\Zend\Filter\DateTimeFormatter

isOptions()

isOptions(mixed $options) : boolean
InheritedStatic

Parameters

$options

mixed

Returns

boolean

Normalize the provided value to a formatted string

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

Parameters

$value

stringinteger\DateTime

Returns

string

 Properties

 

A valid format string accepted by date()

$format : string

Default

\DateTime::ISO8601
 

Filter options

$options : array

Default

array()