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


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 | |
HTML class for a select type element
Definition at line 10 of file select.php.
| 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.

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.
Definition at line 96 of file select.php.
| getHelpButton | ( | ) |
get html for help button
public
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.


| removeOption | ( | $ | value | ) |
Removes an OPTION from the SELECT
| string | $value | Value for the OPTION to remove |
Definition at line 62 of file select.php.
| removeOptions | ( | ) |
Removes all OPTIONs from the SELECT
| string | $value | Value for the OPTION to remove |
Definition at line 85 of file select.php.
| setHelpButton | ( | $ | helpbuttonargs, |
| $ | function = 'helpbutton' |
||
| ) |
set html for help button
public
| array | $help | array of arguments to make a help button |
| string | $function | function name to call to get html |
Definition at line 42 of file select.php.

| setHiddenLabel | ( | $ | hiddenLabel | ) |
Definition at line 22 of file select.php.
| toHtml | ( | ) |
Returns the SELECT in HTML
Reimplemented from HTML_QuickForm_select.
Reimplemented in MoodleQuickForm_searchableselector.
Definition at line 25 of file select.php.

| $_helpbutton = '' |
Definition at line 16 of file select.php.
| $_hiddenLabel = false |
Definition at line 17 of file select.php.