◆ calculate_penalty()
static gradepenalty_duedate\penalty_calculator::calculate_penalty |
( |
penalty_container | $container | ) |
|
|
static |
Calculate the penalty for the given activity.
- Parameters
-
penalty_container | $container | The penalty container. |
Reimplemented from core_grades\penalty_calculator.
◆ get_penalty_from_rules()
static gradepenalty_duedate\penalty_calculator::get_penalty_from_rules |
( |
cm_info | $cm, |
|
|
int | $submissiondate, |
|
|
int | $duedate ) |
|
static |
Get the penalty percentage from the most appropriate penalty rule based on the submission date and the due date.
- Parameters
-
cm_info | $cm | The course module object. |
int | $submissiondate | The submission date. |
int | $duedate | The due date. |
- Return values
-
float | the deducted percentage. |
The documentation for this class was generated from the following file:
- grade/penalty/duedate/classes/penalty_calculator.php