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

Files

file  access.php
 Defines the capabilities used by the Language customization admin tool.
 
file  provider.php
 Privacy Subsystem implementation for tool_customlang.
 
file  renderer.php
 Renderer class for tool customlang.
 
file  translator.php
 customlang specific renderers.
 

Namespaces

 tool_customlang\output
  
 
 tool_customlang\privacy
  
 

Classes

class  tool_customlang\output\renderer
 Renderer for the customlang tool. More...
 
class  tool_customlang\output\translator
 Class containing data for customlang translator page. More...
 
class  tool_customlang\privacy\provider
 Privacy Subsystem for tool_customlang implementing null_provider. More...
 

Variables

 $capabilities
 

Detailed Description

Variable Documentation

◆ $capabilities

$capabilities
Initial value:
= array(
'tool/customlang:view' => array(
'riskbitmask' => RISK_CONFIG,
'captype' => 'read',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'manager' => CAP_ALLOW
),
),
'tool/customlang:edit' => array(
'riskbitmask' => RISK_CONFIG | RISK_XSS,
'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array(
'manager' => CAP_ALLOW
),
),
)
CONTEXT_SYSTEM
const CONTEXT_SYSTEM
System context level - only one instance in every system.
Definition: accesslib.php:122
CAP_ALLOW
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition: accesslib.php:115
RISK_XSS
const RISK_XSS
Capability allows user to add scripted content - see http://docs.moodle.org/dev/Hardening_new_Roles_s...
Definition: accesslib.php:143
RISK_CONFIG
const RISK_CONFIG
Capability allows changes in system configuration - see http://docs.moodle.org/dev/Hardening_new_Role...
Definition: accesslib.php:141