Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402]

Library code used by the roles administration interfaces.

Copyright: 2009 Petr Skoda {@link http://skodak.org}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 177 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_role_permissions_table:: (6 methods):
  __construct()
  add_header_cells()
  num_extra_columns()
  add_row_cells()
  get_risks()
  get_row_attributes()


Class: core_role_permissions_table  - X-Ref

Subclass of core_role_capability_table_base for use on the Permissions page.

__construct($context, $contextname, $allowoverrides, $allowsafeoverrides, $overridableroles)   X-Ref
Constructor.

param: context $context the context this table relates to.
param: string $contextname $context->get_context_name() - to save recomputing.
param: array $allowoverrides
param: array $allowsafeoverrides
param: array $overridableroles

add_header_cells()   X-Ref
No description

num_extra_columns()   X-Ref
No description

add_row_cells($capability)   X-Ref
No description

get_risks($capability)   X-Ref
No description

get_row_attributes($capability)   X-Ref
Add additional attributes to row

param: stdClass $capability capability that this table row relates to.
return: array key value pairs of attribute names and values.