Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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.
 
static member_added (\core\event\cohort_member_added $event)
 Event processor - cohort member added.
 
static member_removed (\core\event\cohort_member_removed $event)
 Event processor - cohort member removed.
 

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: