|
Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
This class encapsulates all the information about the current state-of-play scoring-wise. More...
Public Member Functions | |
| __construct ($state, $maxmark=null, $actualmark=null, $rawmark=null, $currentpenalty=null, $totalpenalty=null, $improvable=null) | |
| Constructor. More... | |
| get_formatted_marks ($markdp) | |
| Get the marks, formatted to a certain number of decimal places, in the form required by calls like get_string('gradingdetails', 'qbehaviour_adaptive', $a). More... | |
Public Attributes | |
| float | $actualmark |
| the current mark for this question. | |
| float | $currentpenalty |
| the the amount of additional penalty this attempt attracted. | |
| bool | $improvable |
| whether it is possible for this mark to be improved in future. | |
| float | $maxmark |
| the maximum mark for this question. | |
| float | $rawmark |
| the raw mark for this question before penalties were applied. | |
| question_state | $state |
| the current state of the question. | |
| float | $totalpenalty |
| the total that will apply to future attempts. | |
This class encapsulates all the information about the current state-of-play scoring-wise.
It is used to communicate between the beahviour and the renderer.
| qbehaviour_adaptive_mark_details::__construct | ( | $state, | |
$maxmark = null, |
|||
$actualmark = null, |
|||
$rawmark = null, |
|||
$currentpenalty = null, |
|||
$totalpenalty = null, |
|||
$improvable = null |
|||
| ) |
Constructor.
| question_state | $state |
| qbehaviour_adaptive_mark_details::get_formatted_marks | ( | $markdp | ) |
Get the marks, formatted to a certain number of decimal places, in the form required by calls like get_string('gradingdetails', 'qbehaviour_adaptive', $a).
| int | $markdp | the number of decimal places required. |
| array | ready to substitute into language strings. |