Constructor. Add the hour, minute and second select elements
Parameters: |
|
---|
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 |
Set the hour attributes
Parameters: | array – |
---|---|
Return type: | DateSelect |
Set the minute attributes
Parameters: | array – |
---|---|
Return type: | DateSelect |
Set the second attributes
Parameters: | array – |
---|---|
Return type: | DateSelect |
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 |
Prepare the form element (mostly used for rendering purposes)
Parameters: | FormInterface – |
---|---|
Return type: | mixed |