Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
mod_assign\penalty\helper Class Reference

Static Public Member Functions

static apply_penalty_to_user (int $assignid, int $userid)
 Apply penalty to a user.
 
static is_penalty_enabled (int $assignid)
 Check if penalty is enabled for an assignment.
 

Member Function Documentation

◆ apply_penalty_to_user()

static mod_assign\penalty\helper::apply_penalty_to_user ( int $assignid,
int $userid )
static

Apply penalty to a user.

Parameters
int$assignidThe assignment id.
int$useridThe user id.

◆ is_penalty_enabled()

static mod_assign\penalty\helper::is_penalty_enabled ( int $assignid)
static

Check if penalty is enabled for an assignment.

Parameters
int$assignidThe assignment id.

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