426. Class

426.1. Zend\Form\Element\DateSelect

426.1.1. Methods

426.1.1.1. __construct

__construct()

Constructor. Add the day select element

Parameters:
  • null|int|string – Optional name for the element
  • array – Optional options for the element

426.1.1.2. setOptions

setOptions()

Accepted options for DateSelect (plus the ones from MonthSelect) : - day_attributes: HTML attributes to be rendered with the day element

Parameters:array|Traversable
Return type:DateSelect

426.1.1.3. getDayElement

getDayElement()

@return Select

426.1.1.4. setDayAttributes

setDayAttributes()

Set the day attributes

Parameters:array
Return type:DateSelect

426.1.1.5. getDayAttributes

getDayAttributes()

Get the day attributes

Return type:array

426.1.1.6. setValue

setValue()

@param string|array|ArrayAccess|PhpDateTime $value

Return type:void|ZendFormElement

426.1.1.7. prepareElement

prepareElement()

Prepare the form element (mostly used for rendering purposes)

Parameters:FormInterface
Return type:mixed

426.1.1.8. getValidator

getValidator()

Get validator

Return type:ValidatorInterface

426.1.1.9. getInputSpecification

getInputSpecification()

Should return an array specification compatible with {@link ZendInputFilterFactory::createInput()}.

Return type:array

426.1.1.10. __clone

__clone()

Clone the element (this is needed by Collection element, as it needs different copies of the elements)