|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| HTML_QuickForm_date ($elementName=null, $elementLabel=null, $options=array(), $attributes=null) | |
| _createElements () | |
| _createOptionList ($start, $end, $step=1) | |
| setValue ($value) | |
| toHtml () | |
| accept (&$renderer, $required=false, $error=null) | |
| onQuickFormEvent ($event, $arg, &$caller) | |
Data Fields | |
| $_options | |
| $_wrap = array('', '') | |
| $_locale | |
Class for a group of elements used to input dates (and times).
Inspired by original 'date' element but reimplemented as a subclass of HTML_QuickForm_group
| _createElements | ( | ) |
Creates the group's elements.
This should be overriden by child classes that need to create their elements. The method will be called automatically when needed, calling it from the constructor is discouraged as the constructor is usually called _twice_ on element creation, first time with _no_ parameters.
private
Reimplemented from HTML_QuickForm_group.
Definition at line 294 of file date.php.

| _createOptionList | ( | $ | start, |
| $ | end, | ||
| $ | step = 1 |
||
| ) |
Creates an option list containing the numbers from the start number to the end, inclusive
| int | The start number |
| int | The end number |
| int | Increment by this value private |
Definition at line 417 of file date.php.

| accept | ( | &$ | renderer, |
| $ | required = false, |
||
| $ | error = null |
||
| ) |
Accepts a renderer
| object | An HTML_QuickForm_Renderer object |
| bool | Whether a group is required |
| string | An error message associated with a group public |
Reimplemented from HTML_QuickForm_group.
Definition at line 475 of file date.php.

| HTML_QuickForm_date | ( | $ | elementName = null, |
| $ | elementLabel = null, |
||
| $ | options = array(), |
||
| $ | attributes = null |
||
| ) |
| onQuickFormEvent | ( | $ | event, |
| $ | arg, | ||
| &$ | caller | ||
| ) |
Called by HTML_QuickForm whenever form event is made on this element
| string | $event | Name of event |
| mixed | $arg | event arguments |
| object | $caller | calling object |
Reimplemented from HTML_QuickForm_group.
| setValue | ( | $ | value | ) |
Sets values for group's elements
| mixed | Values for group's elements |
Reimplemented from HTML_QuickForm_group.
| toHtml | ( | ) |
Returns Html for the group
Reimplemented from HTML_QuickForm_group.
Definition at line 463 of file date.php.

| $_options |