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


Public Member Functions | |
| is_gradable_response (array $response) | |
| get_right_answer_summary () | |
| get_hint ($hintnumber, question_attempt $qa) | |
| format_hint (question_hint $hint, question_attempt $qa) | |
Data Fields | |
| $shownumcorrect = false | |
Protected Member Functions | |
| check_combined_feedback_file_access ($qa, $options, $filearea) | |
| check_hint_file_access ($qa, $options, $args) | |
This class represents a question that can be graded automatically.
Definition at line 563 of file questionbase.php.
| check_combined_feedback_file_access | ( | $ | qa, |
| $ | options, | ||
| $ | filearea | ||
| ) | [protected] |
Check a request for access to a file belonging to a combined feedback field.
| question_attempt | $qa | the question attempt being displayed. |
| question_display_options | $options | the options that control display of the question. |
| string | $filearea | the name of the file area. |
Definition at line 587 of file questionbase.php.


| check_hint_file_access | ( | $ | qa, |
| $ | options, | ||
| $ | args | ||
| ) | [protected] |
Check a request for access to a file belonging to a hint.
| question_attempt | $qa | the question attempt being displayed. |
| question_display_options | $options | the options that control display of the question. |
| array | $args | the remaining bits of the file path. |
Definition at line 608 of file questionbase.php.

| format_hint | ( | question_hint $ | hint, |
| question_attempt $ | qa | ||
| ) |
| get_hint | ( | $ | hintnumber, |
| question_attempt $ | qa | ||
| ) |
Get one of the question hints. The question_attempt is passed in case the question type wants to do something complex. For example, the multiple choice with multiple responses question type will turn off most of the hint options if the student has selected too many opitions.
| int | $hintnumber | Which hint to display. Indexed starting from 0 |
| question_attempt | $qa | The question_attempt. |
Implements question_automatically_gradable.
Reimplemented in qtype_multichoice_multi_question.
Definition at line 617 of file questionbase.php.
Generate a brief, plain-text, summary of the correct answer to this question. This is used by various reports, and can also be useful when testing. This method will return null if such a summary is not possible, or inappropriate.
Implements question_automatically_gradable.
Definition at line 572 of file questionbase.php.

| is_gradable_response | ( | array $ | response | ) |
Use by many of the behaviours to determine whether the student has provided enough of an answer for the question to be graded automatically, or whether it must be considered aborted.
| array | $response | responses, as returned by question_attempt_step::get_qt_data(). |
Implements question_automatically_gradable.
Reimplemented in qtype_multichoice_multi_question, qtype_match_question, qtype_multichoice_single_question, qtype_multianswer_question, and qtype_numerical_question.
Definition at line 568 of file questionbase.php.


| $shownumcorrect = false |
Definition at line 566 of file questionbase.php.