Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
enrol_database

Namespaces

namespace  enrol_database\privacy
  
 
namespace  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_plugin
 Database enrolment plugin implementation. More...
 

Functions

 xmldb_enrol_database_install ()
 
 xmldb_enrol_database_upgrade ($oldversion)
 

Variables

 $capabilities
 
 $plugin = 2024041600
 
 $tasks
 
$plugin component = 'enrol_database'
 
$plugin version = 2024042200
 

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,
)
),
)
const CONTEXT_COURSE
Course context level - one instances for each course.
Definition accesslib.php:128
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition accesslib.php:115

◆ $tasks

$tasks
Initial value:
= array(
array(
'classname' => '\enrol_database\task\sync_enrolments',
'blocking' => 0,
'minute' => 'R',
'hour' => 'R',
'day' => '*',
'month' => '*',
'dayofweek' => '*',
'disabled' => 1
)
)