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


Public Member Functions | |
| __construct ($submiturl, $filter, $context) | |
| definition () | |
| save_changes ($data) | |
Protected Member Functions | |
| definition_inner ($mform) | |
Protected Attributes | |
| $filter | |
| $context | |
Definition at line 29 of file local_settings_form.php.
| __construct | ( | $ | submiturl, |
| $ | filter, | ||
| $ | context | ||
| ) |
| definition | ( | ) |
Build the form definition. Rather than overriding this method, you should probably override definition_inner instead.
This method adds the necessary hidden fields and submit buttons, and calls definition_inner to insert the custom controls in the appropriate place.
Reimplemented from moodleform.
Definition at line 46 of file local_settings_form.php.

| definition_inner | ( | $ | mform | ) | [abstract, protected] |
Override this method to add your form controls.
| $mform | the form we are building. $this->_form, but passed in for convenience. |

| save_changes | ( | $ | data | ) |
Override this method to save the settings to the database. The default implementation will probably be sufficient for most simple cases.
| object | $data | the form data that was submitted. |
Definition at line 73 of file local_settings_form.php.

$context [protected] |
Definition at line 31 of file local_settings_form.php.
$filter [protected] |
Definition at line 30 of file local_settings_form.php.