Javascript initialization for selectmultiplus filter
void
filter_selectmultiplus_init
(string $selectname)
-
string
$selectname: - name of the select element
Add autocomplete to a form text field
void
mform_autocomplete
(MoodleQuickForm $mform, array|moodle_url $options, string $textfieldname, [string $hiddenfieldname = ''], [string $width = '300'])
-
MoodleQuickForm
$mform: Moodle form
-
array|moodle_url
$options: Array of autocomplete options, if $hiddenfieldname is passed, array indexes are considered record IDs
-
string
$textfieldname: The text field's name
-
string
$hiddenfieldname: The hidden field's name. If passed, the option index will be set to this hidden value when its option value is selected in the text field
-
string
$width: The pixel width of the text field (Due to YUI, must use width instead of size)
Inherited Methods
Inherited From mr_helper_abstract
mr_helper_abstract::_set_helper_namespace()