Moodle PHP Documentation 5.0
Moodle 5.0.1+ (Build: 20250711) (61af040cd5f)
mod_assign\penalty_recalculator Class Reference
Inheritance diagram for mod_assign\penalty_recalculator:
core_grades\penalty_recalculator

Static Public Member Functions

static recalculate_penalty (context $context, int $usermodified)
 Calculate the grade penalty based on the information provided in the penalty container.
 

Member Function Documentation

◆ recalculate_penalty()

static mod_assign\penalty_recalculator::recalculate_penalty ( context $context,
int $usermodified )
static

Calculate the grade penalty based on the information provided in the penalty container.

The result should be stored in the penalty container.

Parameters
context$contextthe context where the penalty is being recalculated.
int$usermodifiedthe user who triggered the recalculation.

Reimplemented from core_grades\penalty_recalculator.


The documentation for this class was generated from the following file: