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

Public Member Functions

 MoodleQuickForm_select ($elementName=null, $elementLabel=null, $options=null, $attributes=null)
 setHiddenLabel ($hiddenLabel)
 toHtml ()
 setHelpButton ($helpbuttonargs, $function='helpbutton')
 getHelpButton ()
 removeOption ($value)
 removeOptions ()
 getElementTemplateType ()
 exportValue (&$submitValues, $assoc=false)

Data Fields

 $_helpbutton = ''
 $_hiddenLabel = false

Detailed Description

HTML class for a select type element

Author:
Jamie Pratt public

Definition at line 10 of file select.php.


Member Function Documentation

exportValue ( &$  submitValues,
assoc = false 
)

We check the options and return only the values that _could_ have been selected. We also return a scalar value if select is not "multiple"

Reimplemented from HTML_QuickForm_select.

Definition at line 107 of file select.php.

Here is the call graph for this function:

Slightly different container template when frozen. Don't want to use a label tag with a for attribute in that case for the element label but instead use a div. Templates are defined in renderer constructor.

Returns:
string

Definition at line 96 of file select.php.

get html for help button

public

Returns:
string html for help button

Definition at line 51 of file select.php.

MoodleQuickForm_select ( elementName = null,
elementLabel = null,
options = null,
attributes = null 
)

Definition at line 19 of file select.php.

Here is the call graph for this function:

Here is the caller graph for this function:

removeOption ( value)

Removes an OPTION from the SELECT

Parameters:
string$valueValue for the OPTION to remove
Since:
1.0 public
Returns:
void

Definition at line 62 of file select.php.

Removes all OPTIONs from the SELECT

Parameters:
string$valueValue for the OPTION to remove
Since:
1.0 public
Returns:
void

Definition at line 85 of file select.php.

setHelpButton ( helpbuttonargs,
function = 'helpbutton' 
)

set html for help button

public

Parameters:
array$helparray of arguments to make a help button
string$functionfunction name to call to get html

Definition at line 42 of file select.php.

Here is the call graph for this function:

setHiddenLabel ( hiddenLabel)

Definition at line 22 of file select.php.

toHtml ( )

Returns the SELECT in HTML

Since:
1.0 public
Returns:
string

Reimplemented from HTML_QuickForm_select.

Reimplemented in MoodleQuickForm_searchableselector.

Definition at line 25 of file select.php.

Here is the call graph for this function:


Field Documentation

$_helpbutton = ''

Definition at line 16 of file select.php.

$_hiddenLabel = false

Definition at line 17 of file select.php.


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