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

Public Member Functions

 HTML_QuickForm_hiddenselect ($elementName=null, $elementLabel=null, $options=null, $attributes=null)
 toHtml ()
 accept (&$renderer)

Detailed Description

This class takes the same arguments as a select element, but instead of creating a select ring it creates hidden elements for all values already selected with setDefault or setConstant. This is useful if you have a select ring that you don't want visible, but you need all selected values to be passed.

Author:
Isaac Shepard <ishepard@bsiweb.com>
Version:
1.0
Since:
2.1 public

Definition at line 37 of file hiddenselect.php.


Member Function Documentation

accept ( &$  renderer)

This is essentially a hidden element and should be rendered as one

Definition at line 100 of file hiddenselect.php.

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

Class constructor

Parameters:
stringSelect name attribute
mixedLabel(s) for the select (not used)
mixedData to be used to populate options
mixedEither a typical HTML attribute string or an associative array (not used)
Since:
1.0 public
Returns:
void

Definition at line 52 of file hiddenselect.php.

Here is the call graph for this function:

toHtml ( )

Returns the SELECT in HTML

Since:
1.0 public
Returns:
string
Exceptions:

Reimplemented from HTML_QuickForm_select.

Definition at line 73 of file hiddenselect.php.

Here is the call graph for this function:


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