## Class mr_html_filter_numberrange

Description

MR HTML Filter Number Range

- author: Sam Chaffee

Located in /html/filter/numberrange.php (line 39)

    mr_html_filter_abstract
       |
       --mr_html_filter_numberrange

Variable Summary
mixed $hv_default
mixed $lv_default
Method Summary
mr_html_filter_numberrange __construct (string $name, string $label, [bool $advanced = false], [string $field = NULL], [int $lv_default = 0], [int $hv_default = 0])
void add_element ( $mform)
void get_element_name ()
void preferences_defaults ()
void preferences_update ( $data)
void sql ()
Variables
mixed $hv_default (line 53)

The high value default

- access: protected

mixed $lv_default (line 46)

The low value default

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

Construct

- access: public

mr_html_filter_numberrange __construct (string $name, string $label, [bool $advanced = false], [string $field = NULL], [int $lv_default = 0], [int $hv_default = 0])

- string $name: Filter name
- string $label: Filter label
- bool $advanced: Filter advanced form setting
- string $field: SQL field, defaults to $name
- int $lv_default: Low value default
- int $hv_default: High value default

Redefinition of:

mr_html_filter_abstract::__construct()
  Construct

add_element (line 107)

Add text fields and checkboxes to enable/disable

- access: public

void add_element ( $mform)

- $mform

Redefinition of:

mr_html_filter_abstract::add_element()
  Add filter form element

get_element_name (line 75)

Return the group element

- access: public

void get_element_name ()

Redefinition of:

mr_html_filter_abstract::get_element_name()
  Get the filter's primary form element's name

preferences_defaults (line 82)

Defaults for two fields

- access: public

void preferences_defaults ()

Redefinition of:

mr_html_filter_abstract::preferences_defaults()
  Filter defaults

preferences_update (line 90)

Enforce checkboxes - if not set

then set date to 0

- access: public

void preferences_update ( $data)

- $data

Redefinition of:

mr_html_filter_abstract::preferences_update()
  Update user preferences to current filter settings

sql (line 146)

Set limits on field

- 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:49 -0700 by phpDocumentor 1.4.3