Moodle  2.2.1
http://www.collinsharper.com
MoodleQuickForm_date_selector Class Reference
Inheritance diagram for MoodleQuickForm_date_selector:
Collaboration diagram for MoodleQuickForm_date_selector:

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('', '')

Detailed Description

Definition at line 37 of file dateselector.php.


Member Function Documentation

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.

Here is the call graph for this function:

accept ( &$  renderer,
required = false,
error = null 
)

Accepts a renderer

Parameters:
objectAn HTML_QuickForm_Renderer object
boolWhether a group is required
stringAn error message associated with a group public
Returns:
void

Reimplemented from HTML_QuickForm_group.

Definition at line 195 of file dateselector.php.

Here is the caller graph for this function:

exportValue ( &$  submitValues,
assoc = false 
)

Output a timestamp. Give it the name of the group.

Parameters:
array$submitValues
bool$assoc
Returns:
array

Reimplemented from HTML_QuickForm_group.

Definition at line 209 of file dateselector.php.

Here is the call graph for this function:

MoodleQuickForm_date_selector ( elementName = null,
elementLabel = null,
options = array(),
attributes = null 
)

Class constructor

public

Parameters:
stringElement's name
mixedLabel(s) for an element
arrayOptions to control the element's display
mixedEither a typical HTML attribute string or an associative array

Definition at line 67 of file dateselector.php.

Here is the call graph for this function:

onQuickFormEvent ( event,
arg,
&$  caller 
)

Called by HTML_QuickForm whenever form event is made on this element

Parameters:
string$eventName of event
mixed$argevent arguments
object$callercalling object
Since:
1.0 public
Returns:
void

Reimplemented from HTML_QuickForm_group.

Definition at line 131 of file dateselector.php.

Here is the call graph for this function:

toHtml ( )

Returns Html for the group

Since:
1.0 public
Returns:
string

Reimplemented from HTML_QuickForm_group.

Definition at line 183 of file dateselector.php.

Here is the call graph for this function:


Field Documentation

$_options [protected]
Initial value:
 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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations