Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Files | Namespaces | Classes | Functions | Variables
enrol_database

Files

file  access.php
 Capabilities for database enrolment plugin.
 
file  install.php
 Database enrolment plugin installation.
 
file  lib.php
 Database enrolment plugin.
 
file  provider.php
 Privacy Subsystem implementation for enrol_database.
 
file  settings.php
 Database enrolment plugin settings and presets.
 
file  settingslib.php
 Database enrolment plugin custom settings.
 
file  sync_enrolments.php
 Sync enrolments task.
 
file  tasks.php
 Task definition for enrol_database.
 
file  upgrade.php
 Database enrolment plugin upgrade.
 
file  version.php
 Database enrolment plugin version specification.
 

Namespaces

 enrol_database\privacy
  
 
 enrol_database\task
  
 

Classes

class  enrol_database\privacy\provider
 Privacy Subsystem for enrol_database implementing null_provider. More...
 
class  enrol_database\task\sync_enrolments
 Class sync_enrolments. More...
 
class  enrol_database_admin_setting_category
 Class implements new specialized setting for course categories that are loaded only when required. More...
 
class  enrol_database_plugin
 Database enrolment plugin implementation. More...
 

Functions

 xmldb_enrol_database_install ()
 
 xmldb_enrol_database_upgrade ($oldversion)
 

Variables

 $capabilities
 
 $tasks
 
$plugin component = 'enrol_database'
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 

Detailed Description

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'enrol/database:unenrol' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
'manager' => CAP_ALLOW,
)
),
'enrol/database:config' => array(
'captype' => 'write',
'contextlevel' => CONTEXT_COURSE,
'archetypes' => array(
'manager' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
)
),
)

◆ $tasks

$tasks
Initial value:
= array(
array(
'classname' => '\enrol_database\task\sync_enrolments',
'blocking' => 0,
'minute' => 'R',
'hour' => 'R',
'day' => '*',
'month' => '*',
'dayofweek' => '*',
'disabled' => 1
)
)
CONTEXT_COURSE
const CONTEXT_COURSE
Course context level - one instances for each course.
Definition: accesslib.php:128
CAP_ALLOW
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition: accesslib.php:115