The primary renderer for the capability tool.
More...
|
| capability_comparison_table (array $capabilities, $contextid, array $roles, $onlydiff=false) |
| Produces a table to visually compare roles and capabilities.
|
|
The primary renderer for the capability tool.
- Copyright
- 2013 Sam Hemelryk
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ 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 | $capabilities | An array of capabilities to show comparison for. |
int | $contextid | The context we are displaying for. |
array | $roles | An array of roles to show comparison for. |
bool | $onlydiff | show only different permissions |
- Return values
-
◆ get_permission_classes()
tool_capability_renderer::get_permission_classes |
( |
| ) |
|
|
protected |
Returns an array of permission CSS classes.
- Return values
-
◆ get_permission_strings()
tool_capability_renderer::get_permission_strings |
( |
| ) |
|
|
protected |
Returns an array of permission strings.
- Return values
-
The documentation for this class was generated from the following file:
- admin/tool/capability/renderer.php