Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
question_classified_response Class Reference

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. More...
 

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. More...
 

Detailed Description

This class is used in the return value from question_manually_gradable::classify_response().

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

question_classified_response::__construct (   $responseclassid,
  $response,
  $fraction 
)

Constructor, just an easy way to set the fields.

Parameters
string$responseclassidsee the field descriptions above.
string$responsesee the field descriptions above.
number$fractionsee the field descriptions above.

Member Data Documentation

◆ $responseclassid

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().


The documentation for this class was generated from the following file: