package Default
inherited_from \Zend\Filter\AbstractDateDropdown

 Methods

__construct()

__construct(mixed $options = null
Inherited

Parameters

$options

mixed

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

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

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

filter(mixed $value) : mixed
Inherited

Parameters

$value

mixed

Exceptions

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

Returns

mixed

Retrieve options representing object state

getOptions() : array
Inherited

Returns

array

hasPcreUnicodeSupport()

hasPcreUnicodeSupport() : boolean
InheritedStatic
deprecated Since 2.1.0

Returns

boolean

isNullOnAllEmpty()

isNullOnAllEmpty() : boolean
Inherited

Returns

boolean

isNullOnEmpty()

isNullOnEmpty() : boolean
Inherited

Returns

boolean

Reduce to a single value

reduce(string $soFar, string $value) : boolean
InheritedStatic

Parameters

$soFar

string

$value

string

Returns

boolean

setNullOnAllEmpty()

setNullOnAllEmpty(boolean $nullOnAllEmpty) : \Zend\Filter\MonthSelect
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$nullOnAllEmpty

boolean

Returns

\Zend\Filter\MonthSelect

setNullOnEmpty()

setNullOnEmpty(boolean $nullOnEmpty) : \Zend\Filter\MonthSelect
Inherited
fluent This method is part of a fluent interface and will return the same instance

Parameters

$nullOnEmpty

boolean

Returns

\Zend\Filter\MonthSelect

setOptions()

setOptions(array|\Traversable $options) : \Zend\Filter\MonthSelect
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\MonthSelect

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

filterable($value) 
Inherited

Parameters

$value

Exceptions

\Zend\Filter\Exception\RuntimeException

isOptions()

isOptions(mixed $options) : boolean
InheritedStatic

Parameters

$options

mixed

Returns

boolean

 Properties

 

$expectedInputs

$expectedInputs : integer

Default

2
inherited_from \Zend\Filter\AbstractDateDropdown::expectedInputs
 

$expectedInputs

$expectedInputs : integer

Default

 

Year-Month

$format : string

Default

'%2$s-%1$s'
inherited_from \Zend\Filter\AbstractDateDropdown::format
 

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

$format : string

Default

''
 

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

$nullOnAllEmpty : boolean

Default

false
 

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

$nullOnEmpty : boolean

Default

false
 

Filter options

$options : array

Default

array()