Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
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 = 2023100400
 
 $tasks
 
$plugin component = 'enrol_database'
 
$plugin version = 2023100900
 

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
)
)