## Class mr_html_filter_autocompleteid

Description

MR HTML Filter Autocomplete with IDs

- author: Mark Nielsen

Located in /html/filter/autocompleteid.php (line 37)

    mr_html_filter_abstract
       |
       --mr_html_filter_autocompleteid

Variable Summary
array $options
Method Summary
mr_html_filter_autocompleteid __construct ( $name, $label, $options, [ $advanced = false], [ $field = NULL])
void add_element ( $mform)
void preferences_defaults ()
void sql ()
Variables
array $options = array() (line 46)

Autocomplete options

Options must be: array(recordID => 'display text')

- access: protected

#### Inherited Variables

Inherited from mr_html_filter_abstract

> mr_html_filter_abstract::$advanced
> mr_html_filter_abstract::$disabledif
> mr_html_filter_abstract::$field
> mr_html_filter_abstract::$helpbutton
> mr_html_filter_abstract::$label
> mr_html_filter_abstract::$name
> mr_html_filter_abstract::$preferences

Methods
Constructor __construct (line 53)

Adding an options param for the select options

Options must be: array(recordID => 'display text')

- access: public

mr_html_filter_autocompleteid __construct ( $name, $label, $options, [ $advanced = false], [ $field = NULL])

- $name
- $label
- $options
- $advanced
- $field

Redefinition of:

mr_html_filter_abstract::__construct()
  Construct

add_element (line 68)

Add text input for autocomplete and hidden field to store ID

- access: public

void add_element ( $mform)

- $mform

Redefinition of:

mr_html_filter_abstract::add_element()
  Add filter form element

preferences_defaults (line 61)

Defaults for two fields

- access: public

void preferences_defaults ()

Redefinition of:

mr_html_filter_abstract::preferences_defaults()
  Filter defaults

sql (line 91)

Restrict to value

- access: public

void sql ()

Redefinition of:

mr_html_filter_abstract::sql()
  Generate this filter's SQL

#### Inherited Methods

Inherited From mr_html_filter_abstract

> mr_html_filter_abstract::__construct()
> mr_html_filter_abstract::add_disabledif()
> mr_html_filter_abstract::add_element()
> mr_html_filter_abstract::add_elements()
> mr_html_filter_abstract::add_helpbutton()
> mr_html_filter_abstract::get_element_name()
> mr_html_filter_abstract::get_field()
> mr_html_filter_abstract::get_name()
> mr_html_filter_abstract::preferences_defaults()
> mr_html_filter_abstract::preferences_delete()
> mr_html_filter_abstract::preferences_get()
> mr_html_filter_abstract::preferences_init()
> mr_html_filter_abstract::preferences_update()
> mr_html_filter_abstract::sql()
> mr_html_filter_abstract::__toString()

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