This class encapsulates all the information about the current state-of-play scoring-wise.
More...
|
| __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...
|
|
|
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.
- Copyright
- 2012 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
qbehaviour_adaptive_mark_details::__construct |
( |
|
$state, |
|
|
|
$maxmark = null , |
|
|
|
$actualmark = null , |
|
|
|
$rawmark = null , |
|
|
|
$currentpenalty = null , |
|
|
|
$totalpenalty = null , |
|
|
|
$improvable = null |
|
) |
| |
◆ get_formatted_marks()
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).
- Parameters
-
int | $markdp | the number of decimal places required. |
- Return values
-
array | ready to substitute into language strings. |
The documentation for this class was generated from the following file: