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


Public Member Functions | |
| MoodleQuickForm_date_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) | |
Protected Attributes | |
| $_options | |
| $_wrap = array('', '') | |
Definition at line 37 of file dateselector.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 91 of file dateselector.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 195 of file dateselector.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 209 of file dateselector.php.

| MoodleQuickForm_date_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 67 of file dateselector.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 131 of file dateselector.php.

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

$_options [protected] |
array('startyear' => 1970, 'stopyear' => 2020, 'timezone' => 99, 'applydst' => true, 'optional' => false)
Control the fieldnames for form elements
startyear => integer start of range of years that can be selected stopyear => integer last year that can be selected timezone => float/string timezone applydst => apply users daylight savings adjustment? optional => if true, show a checkbox beside the date to turn it on (or off)
Definition at line 48 of file dateselector.php.
$_wrap = array('', '') [protected] |
Definition at line 56 of file dateselector.php.