Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
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. More...
 
static grade_item_changed ($courseid)
 A grade item has been updated in gradebook. More...
 

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: