Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
enrol_category_observer Class Reference

Event handler for category enrolment plugin. More...

Static Public Member Functions

static role_assigned (\core\event\role_assigned $event)
 Triggered when user is assigned a new role. More...
 
static role_unassigned (\core\event\role_unassigned $event)
 Triggered when user role is unassigned. More...
 

Detailed Description

Event handler for category enrolment plugin.

We try to keep everything in sync via listening to events, it may fail sometimes, so we always do a full sync in cron too.

Member Function Documentation

◆ role_assigned()

static enrol_category_observer::role_assigned ( \core\event\role_assigned  $event)
static

Triggered when user is assigned a new role.

Parameters
core\event\role_assigned$event

◆ role_unassigned()

static enrol_category_observer::role_unassigned ( \core\event\role_unassigned  $event)
static

Triggered when user role is unassigned.

Parameters
core\event\role_unassigned$event

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