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


Public Member Functions | |
| __construct ($submiturl, $question, $category, $contexts, $formeditable=true) | |
| data_preprocessing ($question) | |
| qtype () | |
| validation ($data, $files) | |
Data Fields | |
| $qtypeobj | |
| $wildcarddisplay | |
| $questiondisplay | |
| $datasetdefs | |
| $reload = false | |
| $maxnumber = -1 | |
| $regenerate = true | |
| $noofitems | |
| $outsidelimit = false | |
| $commentanswer = array() | |
| $answer = array() | |
| $nonemptyanswer = array() | |
| $numbererrors = array() | |
| $formdata = array() | |
Protected Member Functions | |
| definition_inner ($mform) | |
Editing form for the calculated simplequestion type.
Definition at line 38 of file edit_calculatedsimple_form.php.
| __construct | ( | $ | submiturl, |
| $ | question, | ||
| $ | category, | ||
| $ | contexts, | ||
| $ | formeditable = true |
||
| ) |
Reimplemented from qtype_calculated_edit_form.
Definition at line 72 of file edit_calculatedsimple_form.php.

| data_preprocessing | ( | $ | question | ) |
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 qtype_calculated_edit_form.
Definition at line 568 of file edit_calculatedsimple_form.php.

| definition_inner | ( | $ | mform | ) | [protected] |
Add question-type specific form fields.
| MoodleQuickForm | $mform | the form being built. |
Reimplemented from qtype_calculated_edit_form.
Definition at line 290 of file edit_calculatedsimple_form.php.

| qtype | ( | ) |
Override this in the subclass to question type name.
Reimplemented from qtype_calculated_edit_form.
Definition at line 581 of file edit_calculatedsimple_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 qtype_calculated_edit_form.
Definition at line 585 of file edit_calculatedsimple_form.php.
| $answer = array() |
Definition at line 64 of file edit_calculatedsimple_form.php.
| $commentanswer = array() |
Definition at line 62 of file edit_calculatedsimple_form.php.
| $datasetdefs |
Definition at line 50 of file edit_calculatedsimple_form.php.
| $formdata = array() |
Definition at line 70 of file edit_calculatedsimple_form.php.
| $maxnumber = -1 |
Definition at line 54 of file edit_calculatedsimple_form.php.
| $nonemptyanswer = array() |
Definition at line 66 of file edit_calculatedsimple_form.php.
| $noofitems |
Definition at line 58 of file edit_calculatedsimple_form.php.
| $numbererrors = array() |
Definition at line 68 of file edit_calculatedsimple_form.php.
| $outsidelimit = false |
Definition at line 60 of file edit_calculatedsimple_form.php.
| $qtypeobj |
Reimplemented from qtype_calculated_edit_form.
Definition at line 44 of file edit_calculatedsimple_form.php.
| $questiondisplay |
Reimplemented from qtype_calculated_edit_form.
Definition at line 48 of file edit_calculatedsimple_form.php.
| $regenerate = true |
Definition at line 56 of file edit_calculatedsimple_form.php.
| $reload = false |
Reimplemented from qtype_calculated_edit_form.
Definition at line 52 of file edit_calculatedsimple_form.php.
| $wildcarddisplay |
Definition at line 46 of file edit_calculatedsimple_form.php.