429. Class

429.1. Zend\Form\Element\DateTimeSelect

429.1.1. Methods

429.1.1.1. __construct

__construct()

Constructor. Add the hour, minute and second select elements

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

429.1.1.2. setOptions

setOptions()

Accepted options for DateTimeSelect (plus the ones from DateSelect) : - hour_attributes: HTML attributes to be rendered with the hour element - minute_attributes: HTML attributes to be rendered with the minute element - second_attributes: HTML attributes to be rendered with the second element - should_show_seconds: if set to true, the seconds select is shown

Parameters:array|Traversable
Return type:DateSelect

429.1.1.3. getHourElement

getHourElement()

@return Select

429.1.1.4. getMinuteElement

getMinuteElement()

@return Select

429.1.1.5. getSecondElement

getSecondElement()

@return Select

429.1.1.6. setHourAttributes

setHourAttributes()

Set the hour attributes

Parameters:array
Return type:DateSelect

429.1.1.7. getHourAttributes

getHourAttributes()

Get the hour attributes

Return type:array

429.1.1.8. setMinuteAttributes

setMinuteAttributes()

Set the minute attributes

Parameters:array
Return type:DateSelect

429.1.1.9. getMinuteAttributes

getMinuteAttributes()

Get the minute attributes

Return type:array

429.1.1.10. setSecondAttributes

setSecondAttributes()

Set the second attributes

Parameters:array
Return type:DateSelect

429.1.1.11. getSecondAttributes

getSecondAttributes()

Get the second attributes

Return type:array

429.1.1.12. setShouldShowSeconds

setShouldShowSeconds()

If set to true, this indicate that the second select is shown. If set to true, the seconds will be assumed to always be 00

Parameters:bool
Return type:DateTimeSelect

429.1.1.13. shouldShowSeconds

shouldShowSeconds()

@return bool

429.1.1.14. setValue

setValue()

@param mixed $value

Return type:void|ZendFormElement

429.1.1.15. prepareElement

prepareElement()

Prepare the form element (mostly used for rendering purposes)

Parameters:FormInterface
Return type:mixed

429.1.1.16. getValidator

getValidator()

Get validator

Return type:ValidatorInterface

429.1.1.17. getInputSpecification

getInputSpecification()

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

Return type:array

429.1.1.18. __clone

__clone()

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