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


Public Member Functions | |
| validation ($data, $files) | |
| qtype () | |
Protected Member Functions | |
| definition_inner ($mform) | |
| data_preprocessing ($question) | |
Short answer question editing form definition.
Definition at line 36 of file edit_shortanswer_form.php.
| data_preprocessing | ( | $ | question | ) | [protected] |
Perform an preprocessing needed on the data passed to set_data() before it is used to initialise the form.
| object | $question | the data being passed to the form. |
Reimplemented from question_edit_form.
Definition at line 57 of file edit_shortanswer_form.php.

| definition_inner | ( | $ | mform | ) | [protected] |
Add any question-type specific form fields.
| object | $mform | the form being built. |
Reimplemented from question_edit_form.
Definition at line 38 of file edit_shortanswer_form.php.

| qtype | ( | ) |
Override this in the subclass to question type name.
Reimplemented from question_edit_form.
Definition at line 92 of file edit_shortanswer_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 question_edit_form.
Definition at line 65 of file edit_shortanswer_form.php.
