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


Public Member Functions | |
| user_filter_cohort ($advanced) | |
| getOperators () | |
| setupForm (&$mform) | |
| check_data ($formdata) | |
| get_sql_filter ($data) | |
| get_label ($data) | |
Generic filter for cohort membership.
Definition at line 10 of file cohort.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 52 of file cohort.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 123 of file cohort.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 71 of file cohort.php.
| getOperators | ( | ) |
Returns an array of comparison operators
Definition at line 23 of file cohort.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 35 of file cohort.php.
| user_filter_cohort | ( | $ | advanced | ) |
Constructor
| boolean | $advanced | advanced form element flag |
Definition at line 15 of file cohort.php.
