Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
tool_capability_renderer Class Reference

The primary renderer for the capability tool. More...

Inheritance diagram for tool_capability_renderer:

Public Member Functions

 capability_comparison_table (array $capabilities, $contextid, array $roles, $onlydiff=false)
 Produces a table to visually compare roles and capabilities.
 

Protected Member Functions

 get_permission_classes ()
 Returns an array of permission CSS classes.
 
 get_permission_strings ()
 Returns an array of permission strings.
 

Detailed Description

The primary renderer for the capability tool.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ capability_comparison_table()

tool_capability_renderer::capability_comparison_table ( array $capabilities,
$contextid,
array $roles,
$onlydiff = false )

Produces a table to visually compare roles and capabilities.

Parameters
array$capabilitiesAn array of capabilities to show comparison for.
int$contextidThe context we are displaying for.
array$rolesAn array of roles to show comparison for.
bool$onlydiffshow only different permissions
Return values
string

◆ get_permission_classes()

tool_capability_renderer::get_permission_classes ( )
protected

Returns an array of permission CSS classes.

Return values
string[]

◆ get_permission_strings()

tool_capability_renderer::get_permission_strings ( )
protected

Returns an array of permission strings.

Return values
lang_string[]

The documentation for this class was generated from the following file: