Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Functions | Variables
tool_capability

Files

file  locallib.php
 Functions used by the capability tool.
 
file  provider.php
 Privacy Subsystem implementation for tool_capability.
 
file  renderer.php
 Capability tool renderer.
 
file  report_viewed.php
 The tool_capability report viewed event.
 
file  settings.php
 Capability overview settings.
 
file  settings_form.php
 Capability tool settings form.
 
file  version.php
 Version details.
 

Namespaces

namespace  tool_capability\event
  
 
namespace  tool_capability\privacy
  
 

Classes

class  tool_capability\event\report_viewed
 The tool_capability report viewed event class. More...
 
class  tool_capability\privacy\provider
 Privacy Subsystem for tool_capability implementing null_provider. More...
 
class  tool_capability_renderer
 The primary renderer for the capability tool. More...
 
class  tool_capability_settings_form
 Class tool_capability_settings_form. More...
 

Functions

 tool_capability_calculate_role_data ($capability, array $roles)
 Calculates capability data organised by context for the given roles. More...
 

Variables

 $plugin = 2020060900
 
$plugin component = 'tool_capability'
 
$plugin version = 2020061500
 

Detailed Description

Function Documentation

◆ tool_capability_calculate_role_data()

tool_capability_calculate_role_data (   $capability,
array  $roles 
)

Calculates capability data organised by context for the given roles.

Parameters
string$capabilityThe capability to get data for.
array$rolesAn array of roles to get data for.
Return values
context[]An array of contexts.