Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

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.