Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
|
Namespaces | |
namespace | enrol_category\privacy |
| |
namespace | enrol_category\task |
| |
Classes | |
class | enrol_category\privacy\provider |
Privacy Subsystem for enrol_category implementing null_provider. More... | |
class | enrol_category\task\enrol_category_sync |
Syncing enrolments task. More... | |
class | enrol_category_observer |
Event handler for category enrolment plugin. More... | |
class | enrol_category_plugin |
category enrolment plugin implementation. More... | |
Functions | |
enrol_category_sync_course ($course) | |
Sync all category enrolments in one course. | |
enrol_category_sync_full (progress_trace $trace) | |
Synchronise courses in all categories. | |
xmldb_enrol_category_install () | |
Variables | |
$capabilities | |
$observers | |
$plugin = 2023041800 | |
$tasks | |
$plugin | component = 'enrol_category' |
$plugin | version = 2023042400 |
enrol_category_sync_course | ( | $course | ) |
Sync all category enrolments in one course.
stdClass | $course |
void |
enrol_category_sync_full | ( | progress_trace | $trace | ) |
Synchronise courses in all categories.
It gets out-of-sync if:
progress_trace | $trace |
int | exit code - 0 is ok, 1 means error, 2 if plugin disabled |
$capabilities |
$observers |
$tasks |