Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
Event handler for meta enrolment plugin. More...
Static Protected Member Functions | |
static | sync_course_instances ($courseid, $userid) |
Synchronise meta enrolments of this user in this course. More... | |
static | sync_with_parent_course (stdClass $instance, $userid) |
Synchronise user enrolments in given instance as fast as possible. More... | |
static | user_not_supposed_to_be_here ($instance, $ue, context_course $context, $plugin) |
Deal with users that are not supposed to be enrolled via this instance. More... | |
Event handler for meta 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.
|
staticprotected |
Synchronise meta enrolments of this user in this course.
int | $courseid | |
int | $userid |
void |
|
staticprotected |
Synchronise user enrolments in given instance as fast as possible.
All roles are removed if the meta plugin disabled.
stdClass | $instance | |
int | $userid |
void |
|
staticprotected |
Deal with users that are not supposed to be enrolled via this instance.
stdClass | $instance | |
stdClass | $ue | |
context_course | $context | |
enrol_meta | $plugin |
void |