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


Public Member Functions | |
| definition () | |
| has_instance () | |
| get_context () | |
| data_preprocessing (&$default_values) | |
| validation ($data, $files) | |
Protected Member Functions | |
| get_assignment_instance () | |
Protected Attributes | |
| $_assignmentinstance = null | |
Definition at line 8 of file mod_form.php.
| data_preprocessing | ( | &$ | default_values | ) |
Only available on moodleform_mod.
| array | $default_values | passed by reference |
Reimplemented from moodleform_mod.
Definition at line 111 of file mod_form.php.

| definition | ( | ) |
Abstract method - always override!
Reimplemented from moodleform.
Definition at line 11 of file mod_form.php.

| get_assignment_instance | ( | ) | [protected] |
Definition at line 89 of file mod_form.php.


| get_context | ( | ) |
Definition at line 85 of file mod_form.php.
| has_instance | ( | ) |
Definition at line 80 of file mod_form.php.
| validation | ( | $ | data, |
| $ | files | ||
| ) |
Dummy stub method - override if you needed to perform some extra validation. If there are errors return array of errors ("fieldname"=>"error message"), otherwise true if ok.
Server side rules do not work for uploaded files, implement serverside rules here if needed.
| array | $data | array of ("fieldname"=>value) of submitted data |
| array | $files | array of uploaded files "element_name"=>tmp_file_path |
Reimplemented from moodleform_mod.
Definition at line 117 of file mod_form.php.

$_assignmentinstance = null [protected] |
Definition at line 9 of file mod_form.php.