Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
tool_capability

Namespaces

namespace  tool_capability\event
 The tool_capability report viewed event.
 
namespace  tool_capability\privacy
 Privacy Subsystem implementation for tool_capability.
 

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
 Capability tool renderer. More...
 
class  tool_capability_settings_form
 Capability tool settings form. More...
 

Functions

 tool_capability_calculate_role_data ($capability, array $roles)
 Functions used by the capability tool.
 

Variables

 $plugin = 2023100400
 
$plugin component = 'tool_capability'
 
$plugin version = 2023100900
 

Detailed Description

Function Documentation

◆ tool_capability_calculate_role_data()

tool_capability_calculate_role_data ( $capability,
array $roles )

Functions used by the capability tool.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 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.