Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
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

namespace  tool_customlang\output
  
 
namespace  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
),
),
)
const CONTEXT_SYSTEM
System context level - only one instance in every system.
Definition: accesslib.php:122
const RISK_CONFIG
Capability allows changes in system configuration - see
Definition: accesslib.php:141
const CAP_ALLOW
Allow permission, overrides CAP_PREVENT defined in parent contexts.
Definition: accesslib.php:115
const RISK_XSS
Capability allows user to add scripted content - see
Definition: accesslib.php:143