Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Class to represent a question answer, loaded from the question_answers table in the database. More...
Public Member Functions | |
__construct ($id, $answer, $fraction, $feedback, $feedbackformat) | |
Constructor. More... | |
Public Attributes | |
string | $answer |
the answer. | |
integer | $answerformat = FORMAT_PLAIN |
one of the FORMAT_... More... | |
string | $feedback |
the feedback for this answer. | |
integer | $feedbackformat |
one of the FORMAT_... More... | |
number | $fraction |
the fraction this answer is worth. | |
integer | $id |
the answer id. | |
Class to represent a question answer, loaded from the question_answers table in the database.
question_answer::__construct | ( | $id, | |
$answer, | |||
$fraction, | |||
$feedback, | |||
$feedbackformat | |||
) |
Constructor.
int | $id | the answer. |
string | $answer | the answer. |
number | $fraction | the fraction this answer is worth. |
string | $feedback | the feedback for this answer. |
int | $feedbackformat | the format of the feedback. |
integer question_answer::$answerformat = FORMAT_PLAIN |
one of the FORMAT_...
constans.
integer question_answer::$feedbackformat |
one of the FORMAT_...
constans.