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


Public Member Functions | |
| MoodleQuickForm_date_time_selector ($elementName=null, $elementLabel=null, $options=array(), $attributes=null) | |
| _createElements () | |
| onQuickFormEvent ($event, $arg, &$caller) | |
| toHtml () | |
| accept (&$renderer, $required=false, $error=null) | |
| exportValue (&$submitValues, $assoc=false) | |
Data Fields | |
| $_options | |
| $_wrap = array('', '') | |
Definition at line 37 of file datetimeselector.php.
| _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 92 of file datetimeselector.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 215 of file datetimeselector.php.

| exportValue | ( | &$ | submitValues, |
| $ | assoc = false |
||
| ) |
Output a timestamp. Give it the name of the group.
| array | $submitValues | |
| bool | $assoc |
Reimplemented from HTML_QuickForm_group.
Definition at line 229 of file datetimeselector.php.

| MoodleQuickForm_date_time_selector | ( | $ | elementName = null, |
| $ | elementLabel = null, |
||
| $ | options = array(), |
||
| $ | attributes = null |
||
| ) |
Class constructor
public
| string | Element's name |
| mixed | Label(s) for an element |
| array | Options to control the element's display |
| mixed | Either a typical HTML attribute string or an associative array |
Definition at line 68 of file datetimeselector.php.

| 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.
Definition at line 145 of file datetimeselector.php.

| toHtml | ( | ) |
Returns Html for the group
Reimplemented from HTML_QuickForm_group.
Definition at line 203 of file datetimeselector.php.

| $_options |
array('startyear' => 1970, 'stopyear' => 2020, 'defaulttime' => 0, 'timezone' => 99, 'applydst' => true, 'step' => 5, 'optional' => false)
Options for the element
startyear => integer start of range of years that can be selected stopyear => integer last year that can be selected defaulttime => default time value if the field is currently not set timezone => float/string timezone applydst => apply users daylight savings adjustment? step => step to increment minutes by optional => if true, show a checkbox beside the date to turn it on (or off)
Definition at line 49 of file datetimeselector.php.
| $_wrap = array('', '') |
Definition at line 57 of file datetimeselector.php.