|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| user_filter_select ($name, $label, $advanced, $field, $options, $default=null) | |
| get_operators () | |
| setupForm (&$mform) | |
| check_data ($formdata) | |
| get_sql_filter ($data) | |
| get_label ($data) | |
Data Fields | |
| $_options | |
| $_field | |
| $_default | |
Generic filter based on a list of values.
Definition at line 8 of file select.php.
| check_data | ( | $ | formdata | ) |
Retrieves data from the form data
| object | $formdata | data submited with the form |
Reimplemented from user_filter_type.
Definition at line 67 of file select.php.
| get_label | ( | $ | data | ) |
Returns a human friendly description of the filter used as label.
| array | $data | filter settings |
Reimplemented from user_filter_type.
Definition at line 114 of file select.php.

| get_operators | ( | ) |
Returns an array of comparison operators
Definition at line 38 of file select.php.

| get_sql_filter | ( | $ | data | ) |
Returns the condition to be used with SQL where
| array | $data | filter settings |
Reimplemented from user_filter_type.
Definition at line 84 of file select.php.
| setupForm | ( | &$ | mform | ) |
Adds controls specific to this filter in the form.
| object | $mform | a MoodleForm object to setup |
Reimplemented from user_filter_type.
Definition at line 48 of file select.php.
| user_filter_select | ( | $ | name, |
| $ | label, | ||
| $ | advanced, | ||
| $ | field, | ||
| $ | options, | ||
| $ | default = null |
||
| ) |
Constructor
| string | $name | the name of the filter instance |
| string | $label | the label of the filter instance |
| boolean | $advanced | advanced form element flag |
| string | $field | user table filed name |
| array | $options | select options |
| mixed | $default | option |
Definition at line 27 of file select.php.

| $_default |
Definition at line 16 of file select.php.
| $_field |
Definition at line 14 of file select.php.
| $_options |
options for the list values
Definition at line 12 of file select.php.