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


Public Member Functions | |
| __construct ($submiturl, $question, $category, $contexts, $formeditable=true) | |
| set_data ($question) | |
| qtype () | |
| validation ($data, $files) | |
Protected Member Functions | |
| definition_inner ($mform) | |
This question renderer class is used when the actual question type of this question cannot be found.
Definition at line 37 of file edit_missingtype_form.php.
| __construct | ( | $ | submiturl, |
| $ | question, | ||
| $ | category, | ||
| $ | contexts, | ||
| $ | formeditable = true |
||
| ) |
Reimplemented from question_edit_form.
Definition at line 38 of file edit_missingtype_form.php.
| definition_inner | ( | $ | mform | ) | [protected] |
Add question-type specific form fields.
| object | $mform | the form being built. |
Reimplemented from question_edit_form.
Definition at line 47 of file edit_missingtype_form.php.

| qtype | ( | ) |
Override this in the subclass to question type name.
Reimplemented from question_edit_form.
Definition at line 68 of file edit_missingtype_form.php.
| set_data | ( | $ | default_values | ) |
Load in existing data as form defaults. Usually new entry defaults are stored directly in form definition (new entry form); this function is used to load in data where values already exist and data is being edited (edit entry form).
note: $slashed param removed
| mixed | $default_values | object or array of default values |
Reimplemented from question_edit_form.
Definition at line 52 of file edit_missingtype_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 72 of file edit_missingtype_form.php.