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


Public Member Functions | |
| __construct ($name, $label, $advanced, $field, $disableelements=null) | |
| setupForm (MoodleQuickForm &$mform) | |
| check_data ($formdata) | |
| get_sql_filter ($data) | |
| get_label ($data) | |
Protected Attributes | |
| $disableelements = array() | |
| $field | |
Generic filter based for checkbox and can be used for disabling items
Definition at line 35 of file checkbox.php.
| __construct | ( | $ | name, |
| $ | label, | ||
| $ | advanced, | ||
| $ | field, | ||
| $ | disableelements = null |
||
| ) |
Constructor, initalize user_filter_type and sets $disableelements array with list of elements to be diabled by checkbox.
| string | $name | the name of the filter instance |
| string | $label | the label of the filter instance |
| boolean | $advanced | advanced form element flag |
| mixed | $field | user table field/fields name for comparison |
| array | $disableelements | name of fields which should be disabled if this checkbox is checked. |
Definition at line 58 of file checkbox.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 98 of file checkbox.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 136 of file checkbox.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 120 of file checkbox.php.
| setupForm | ( | MoodleQuickForm &$ | mform | ) |
Adds controls specific to this filter in the form.
| moodleform | $mform | a MoodleQuickForm object in which element will be added |
Definition at line 75 of file checkbox.php.

$disableelements = array() [protected] |
Definition at line 40 of file checkbox.php.
$field [protected] |
Definition at line 46 of file checkbox.php.