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


Public Member Functions | |
| save_question_options ($question) | |
| finished_edit_wizard ($form) | |
| wizard_pages_number () | |
| custom_generator_tools_part ($mform, $idx, $j) | |
| comment_header ($answers) | |
| tolerance_types () | |
| dataset_options ($form, $name, $mandatory=true, $renameabledatasets=false) | |
Data Fields | |
| $wizard_pages_number = 1 | |
The simple calculated question type.
Definition at line 38 of file questiontype.php.
| comment_header | ( | $ | answers | ) |
Reimplemented from qtype_calculated.
Definition at line 265 of file questiontype.php.
| custom_generator_tools_part | ( | $ | mform, |
| $ | idx, | ||
| $ | j | ||
| ) |
Reimplemented from qtype_calculated.
Definition at line 243 of file questiontype.php.
| dataset_options | ( | $ | form, |
| $ | name, | ||
| $ | mandatory = true, |
||
| $ | renameabledatasets = false |
||
| ) |
Reimplemented from qtype_calculated.
Definition at line 283 of file questiontype.php.

| finished_edit_wizard | ( | $ | form | ) |
Returns true if the editing wizard is finished, false otherwise.
The default implementation returns true, which is suitable for all question- types that only use one editing form. This function is used in question.php to decide whether we can regrade any states of the edited question and redirect to edit.php.
The dataset dependent question-type, which is extended by the calculated question-type, overwrites this method because it uses multiple pages (i.e. a wizard) to set up the question and associated datasets.
| object | $form | The data submitted by the previous page. |
Reimplemented from qtype_calculated.
Definition at line 235 of file questiontype.php.
| save_question_options | ( | $ | question | ) |
Saves question-type specific options
This is called by save_question() to save the question-type specific data
| object | $question | This holds the information from the editing form, it is not a standard question object. |
Reimplemented from qtype_calculated.
Definition at line 43 of file questiontype.php.

| tolerance_types | ( | ) |
Reimplemented from qtype_calculated.
Definition at line 276 of file questiontype.php.
Definition at line 239 of file questiontype.php.
| $wizard_pages_number = 1 |
Definition at line 41 of file questiontype.php.