Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | List of all members
enrol_cohort_handler Class Reference

Event handler for cohort enrolment plugin. More...

Static Public Member Functions

static deleted (\core\event\cohort_deleted $event)
 Event processor - cohort deleted. More...
 
static member_added (\core\event\cohort_member_added $event)
 Event processor - cohort member added. More...
 
static member_removed (\core\event\cohort_member_removed $event)
 Event processor - cohort member removed. More...
 

Detailed Description

Event handler for cohort 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

◆ deleted()

static enrol_cohort_handler::deleted ( \core\event\cohort_deleted  $event)
static

Event processor - cohort deleted.

Parameters
core::event::cohort_deleted$event
Return values
bool

◆ member_added()

static enrol_cohort_handler::member_added ( \core\event\cohort_member_added  $event)
static

Event processor - cohort member added.

Parameters
core::event::cohort_member_added$event
Return values
bool

◆ member_removed()

static enrol_cohort_handler::member_removed ( \core\event\cohort_member_removed  $event)
static

Event processor - cohort member removed.

Parameters
core::event::cohort_member_removed$event
Return values
bool

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