Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

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.