Moodle  2.2.1
http://www.collinsharper.com
question_response_answer_comparer Interface Reference
Inheritance diagram for question_response_answer_comparer:

Public Member Functions

 get_answers ()
 compare_response_with_answer (array $response, question_answer $answer)

Detailed Description

This interface defines the methods that a question_definition must implement if it is to be graded by the question_first_matching_answer_grading_strategy.

Definition at line 895 of file questionbase.php.


Member Function Documentation

compare_response_with_answer ( array response,
question_answer answer 
)
Parameters:
array$responsethe response.
question_answer$answeran answer.
Returns:
bool whether the response matches the answer.

Implemented in qtype_shortanswer_question, and test_response_answer_comparer.


The documentation for this interface was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations