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

Public Member Functions

 MoodleQuickForm_searchableselector ($elementName=null, $elementLabel=null, $options=null, $attributes=null)
 toHtml ()

Detailed Description

Display a select input with a search textfield input on the top The search textfield is created by the javascript file searchselector.js (so when javascript is not activated into the browser, the search field is not displayed) If ever the select can be reset/unselect/blank/nooption, you will have to add an option "noselected" and manage this special case when you get/set the form data (i.e. $mform->get_data()/$this->set_data($yourobject)).

Definition at line 35 of file searchableselector.php.


Member Function Documentation

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

Definition at line 38 of file searchableselector.php.

Here is the call graph for this function:

toHtml ( )

Returns the SELECT in HTML

Since:
1.0 public
Returns:
string

Reimplemented from MoodleQuickForm_select.

Definition at line 46 of file searchableselector.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