Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
This class is used in the return value from question_manually_gradable::classify_response(). More...
Public Member Functions | |
__construct ($responseclassid, $response, $fraction) | |
Constructor, just an easy way to set the fields. | |
Static Public Member Functions | |
static | no_response () |
Public Attributes | |
number | $fraction |
the fraction this part of the response earned. | |
string | $response |
the actual response the student gave to this part. | |
string | $responseclassid |
the classification of this response the student gave to this part of the question. | |
This class is used in the return value from question_manually_gradable::classify_response().
question_classified_response::__construct | ( | $responseclassid, | |
$response, | |||
$fraction ) |
Constructor, just an easy way to set the fields.
string | $responseclassid | see the field descriptions above. |
string | $response | see the field descriptions above. |
number | $fraction | see the field descriptions above. |
string question_classified_response::$responseclassid |
the classification of this response the student gave to this part of the question.
Must match one of the responseclasses returned by question_type::get_possible_responses().