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


Public Member Functions | |
| user_filter_profilefield ($name, $label, $advanced) | |
| get_operators () | |
| get_profile_fields () | |
| setupForm (&$mform) | |
| check_data ($formdata) | |
| get_sql_filter ($data) | |
| get_label ($data) | |
User filter based on values of custom profile fields.
Definition at line 8 of file profilefield.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 75 of file profilefield.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 175 of file profilefield.php.

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

Returns an array of custom profile fields
Definition at line 39 of file profilefield.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 102 of file profilefield.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 55 of file profilefield.php.

| user_filter_profilefield | ( | $ | name, |
| $ | label, | ||
| $ | advanced | ||
| ) |
Constructor
| string | $name | the name of the filter instance |
| string | $label | the label of the filter instance |
| boolean | $advanced | advanced form element flag |
Definition at line 16 of file profilefield.php.
