Moodle  2.2.1
http://www.collinsharper.com
question_with_responses Class Reference
Inheritance diagram for question_with_responses:
Collaboration diagram for question_with_responses:

Public Member Functions

 classify_response (array $response)

Detailed Description

This class represents a real question. That is, one that is not a question_information_item.

Definition at line 549 of file questionbase.php.


Member Function Documentation

classify_response ( array response)

Categorise the student's response according to the categories defined by get_possible_responses.

Parameters:
$responsea response, as might be passed to grade_response().
Returns:
array subpartid => question_classified_response objects. returns an empty array if no analysis is possible.

Implements question_manually_gradable.

Reimplemented in question_graded_by_strategy, qtype_multichoice_multi_question, qtype_numerical_question, qtype_multichoice_single_question, qtype_match_question, and qtype_truefalse_question.

Definition at line 551 of file questionbase.php.


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