|
Moodle PHP Documentation 4.5
Moodle 4.5.5+ (Build: 20250711) (ce34e8ff087)
|
Subclass of question_answer with the extra information required by the numerical question type. More...
Public Member Functions | |
| __construct ($id, $answer, $fraction, $feedback, $feedbackformat, $tolerance) | |
| get_tolerance_interval () | |
| within_tolerance ($value) | |
Public Attributes | |
| string | $answer |
| the answer. | |
| integer | $answerformat = FORMAT_PLAIN |
| one of the FORMAT_... constans. | |
| string | $feedback |
| the feedback for this answer. | |
| integer | $feedbackformat |
| one of the FORMAT_... constans. | |
| number | $fraction |
| the fraction this answer is worth. | |
| integer | $id |
| the answer id. | |
| float | $tolerance |
| allowable margin of error. | |
| integer string | $tolerancetype = 2 |
| see get_tolerance_interval() for the meaning of this value. | |
Subclass of question_answer with the extra information required by the numerical question type.