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

Files

file  access.php
 Capabilities for guest access plugin.
 
file  external.php
 Guest enrolment method external API.
 
file  lib.php
 Guest access plugin.
 
file  locallib.php
 Guest access plugin implementation.
 
file  provider.php
 Privacy Subsystem implementation for enrol_guest.
 
file  services.php
 Guest enrolment external functions and service definitions.
 
file  settings.php
 Guest access plugin settings and presets.
 
file  upgrade.php
 This file keeps track of upgrades to the guest enrolment plugin.
 
file  version.php
 Guest access plugin version specification.
 

Namespaces

 enrol_guest\privacy
  
 

Classes

class  enrol_guest\privacy\provider
 Privacy Subsystem for enrol_guest implementing null_provider. More...
 
class  enrol_guest_enrol_form
 
class  enrol_guest_external
 
class  enrol_guest_plugin
 Class enrol_guest_plugin. More...
 

Functions

 enrol_guest_get_fontawesome_icon_map ()
 Get icon mapping for font-awesome.
 
 xmldb_enrol_guest_upgrade ($oldversion)
 

Variables

 $capabilities
 
 $functions
 
$plugin component = 'enrol_guest'
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 

Detailed Description

Variable Documentation

◆ $capabilities

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

◆ $functions

$functions
Initial value:
= array(
'enrol_guest_get_instance_info' => array(
'classname' => 'enrol_guest_external',
'methodname' => 'get_instance_info',
'description' => 'Return guest enrolment instance information.',
'type' => 'read',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
),
)
MOODLE_OFFICIAL_MOBILE_SERVICE
const MOODLE_OFFICIAL_MOBILE_SERVICE
Moodle mobile app service name.
Definition: moodlelib.php:501
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