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


Public Member Functions | |
| menu_name () | |
| is_usable_by_random () | |
| can_analyse_responses () | |
| make_question ($questiondata) | |
| make_deleted_instance ($questionid, $maxmark) | |
| get_random_guess_score ($questiondata) | |
| display_question_editing_page ($mform, $question, $wizardnow) | |
Missing question type class
When we encounter a question of a type that is not currently installed, then we use this question type class instead so that some of the information about this question can be seen, and the rest of the system keeps working.
Definition at line 40 of file questiontype.php.
Whether this question type can perform a frequency analysis of student responses.
If this method returns true, you must implement the get_possible_responses method, and the question_definition class must implement the classify_response method.
Reimplemented from question_type.
Definition at line 49 of file questiontype.php.
| display_question_editing_page | ( | $ | mform, |
| $ | question, | ||
| $ | wizardnow | ||
| ) |
This method should be overriden if you want to include a special heading or some other html on a question editing page besides the question editing form.
| question_edit_form | $mform | a child of question_edit_form |
| object | $question | |
| string | $wizardnow | is '' for first page. |
Reimplemented from question_type.
Definition at line 90 of file questiontype.php.
| get_random_guess_score | ( | $ | questiondata | ) |
| object | $question |
Reimplemented from question_type.
Definition at line 86 of file questiontype.php.
Reimplemented from question_type.
Definition at line 45 of file questiontype.php.
| make_deleted_instance | ( | $ | questionid, |
| $ | maxmark | ||
| ) |
| make_question | ( | $ | questiondata | ) |
Create an appropriate question_definition for the question of this type using data loaded from the database.
| object | $questiondata | the question data loaded from the database. |
Reimplemented from question_type.
Definition at line 53 of file questiontype.php.

| menu_name | ( | ) |
The name this question should appear as in the create new question dropdown. Override this method to return false if you don't want your question type to be createable, for example if it is an abstract base type, otherwise, you should not need to override this method.
Reimplemented from question_type.
Definition at line 41 of file questiontype.php.