## Class mr_helper_html

Description

MR Helper HTML

Similar to lib/weblib.php, provide methods that assist with generating HTML.

- author: Mark Nielsen

Located in /helper/html.php (line 40)

    mr_helper_abstract
       |
       --mr_helper_html

Method Summary
void filter_selectmultiplus_init (string $selectname)
void mform_autocomplete (MoodleQuickForm $mform, array|moodle_url $options, string $textfieldname, [string $hiddenfieldname = ''], [string $width = '300'])
Variables

#### Inherited Variables

Inherited from mr_helper_abstract

> mr_helper_abstract::$_helper_namespace

Methods
filter_selectmultiplus_init (line 130)

Javascript initialization for selectmultiplus filter

- link: http://yuilibrary.com/yui/docs/autocomplete/
- link: http://yuilibrary.com/yui/docs/autocomplete/#select-node
- access: public

void filter_selectmultiplus_init (string $selectname)

- string $selectname: - name of the select element

mform_autocomplete (line 59)

Add autocomplete to a form text field

- link: What you get with no $hiddenfieldname
- link: What you get with $hiddenfieldname
- access: public

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()

Documentation generated on Thu, 28 Jun 2012 16:33:49 -0700 by phpDocumentor 1.4.3