Methods

__construct()

__construct(mixed $options) 

Parameters

$options

mixed

If array or Traversable, passes value to setOptions().

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

Attempts to filter an array of date/time information to a formatted string.

filter(mixed $value) : mixed

Parameters

$value

mixed

Exceptions

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

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

isNullOnAllEmpty()

isNullOnAllEmpty() : bool

Returns

bool

isNullOnEmpty()

isNullOnEmpty() : bool

Returns

bool

Reduce to a single value

reduce(string $soFar, string $value) : bool

Parameters

$soFar

string

$value

string

Returns

bool

setNullOnAllEmpty()

setNullOnAllEmpty(bool $nullOnAllEmpty) : \Zend\Filter\self

Parameters

$nullOnAllEmpty

bool

Returns

\Zend\Filter\self

setNullOnEmpty()

setNullOnEmpty(bool $nullOnEmpty) : \Zend\Filter\self

Parameters

$nullOnEmpty

bool

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

Ensures there are enough inputs in the array to properly format the date.

filterable($value) 

Parameters

$value

Exceptions

\Zend\Filter\Exception\RuntimeException

isOptions()

isOptions(mixed $options) : bool
Inherited

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

Parameters

$options

mixed

Returns

bool

 Properties

 

$expectedInputs

$expectedInputs : int

 

Sprintf format string to use for formatting the date, fields will be used in alphabetical order.

$format : string

 

If true, the filter will return null if all date fields are empty

$nullOnAllEmpty : bool

 

If true, the filter will return null if any date field is empty

$nullOnEmpty : bool

 

Filter options

$options : array
Inherited

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