Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
availability_grade\callbacks Class Reference

Callbacks handling grade changes (to clear cache). More...

Static Public Member Functions

static grade_changed ($userid)
 A user grade has been updated in gradebook.
 
static grade_item_changed ($courseid)
 A grade item has been updated in gradebook.
 

Detailed Description

Callbacks handling grade changes (to clear cache).

This ought to use the hooks system, but it doesn't exist - calls are hard-coded. (The new event system is not suitable for this type of use.)

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ grade_changed()

static availability_grade\callbacks::grade_changed ( $userid)
static

A user grade has been updated in gradebook.

Parameters
int$useridUser ID

◆ grade_item_changed()

static availability_grade\callbacks::grade_item_changed ( $courseid)
static

A grade item has been updated in gradebook.

Parameters
int$courseidCourse id

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