The base user filter class.
More...
|
| __construct ($name, $label, $advanced) |
| Constructor.
|
|
| check_data ($formdata) |
| Retrieves data from the form data.
|
|
| get_label ($data) |
| Returns a human friendly description of the filter used as label.
|
|
| get_sql_filter ($data) |
| Returns the condition to be used with SQL where.
|
|
| setupForm (&$mform) |
| Adds controls specific to this filter in the form.
|
|
| user_filter_type ($name, $label, $advanced) |
| Old syntax of class constructor.
|
|
|
bool | $_advanced |
| Advanced form element flag.
|
|
string | $_label |
| The label of this filter instance.
|
|
string | $_name |
| The name of this filter instance.
|
|
The base user filter class.
All abstract classes must be implemented.
- Copyright
- 1999 Martin Dougiamas http://dougiamas.com
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
user_filter_type::__construct |
( |
| $name, |
|
|
| $label, |
|
|
| $advanced ) |
◆ check_data()
user_filter_type::check_data |
( |
| $formdata | ) |
|
◆ get_label()
user_filter_type::get_label |
( |
| $data | ) |
|
◆ get_sql_filter()
user_filter_type::get_sql_filter |
( |
| $data | ) |
|
Returns the condition to be used with SQL where.
- Parameters
-
array | $data | filter settings |
- Return values
-
string | the filtering condition or null if the filter is disabled |
Reimplemented in user_filter_anycourses, user_filter_checkbox, user_filter_cohort, user_filter_courserole, user_filter_date, user_filter_globalrole, user_filter_profilefield, user_filter_select, user_filter_simpleselect, user_filter_text, and user_filter_yesno.
◆ setupForm()
user_filter_type::setupForm |
( |
& | $mform | ) |
|
◆ user_filter_type()
user_filter_type::user_filter_type |
( |
| $name, |
|
|
| $label, |
|
|
| $advanced ) |
The documentation for this class was generated from the following file: