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


Public Member Functions | |
| __construct (question_response_answer_comparer $question) | |
| grade (array $response) | |
| get_correct_answer () | |
Protected Attributes | |
| $question | |
This grading strategy is used by question types like shortanswer an numerical. It gets a list of possible answers from the question, and returns the first one that matches the given response. It returns the first answer with fraction 1.0 when asked for the correct answer.
Definition at line 917 of file questionbase.php.
| __construct | ( | question_response_answer_comparer $ | question | ) |
| question_response_answer_comparer | $question | (presumably also a question_definition) the question we are doing the grading for. |
Definition at line 928 of file questionbase.php.
Implements question_grading_strategy.
Definition at line 942 of file questionbase.php.

Return a question answer that describes the outcome (fraction and feeback) for a particular respons.
| array | $response | the response. |
Implements question_grading_strategy.
Definition at line 932 of file questionbase.php.
$question [protected] |
Definition at line 922 of file questionbase.php.