Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Library code used by the roles administration interfaces.

Copyright: 1999 onwards Martin Dougiamas (http://dougiamas.com)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 85 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_role_check_capability_table:: (5 methods):
  __construct()
  add_header_cells()
  num_extra_columns()
  get_row_classes()
  add_row_cells()


Class: core_role_check_capability_table  - X-Ref

Subclass of core_role_capability_table_base for use on the Check permissions page.

We have one additional column, Allowed, which contains yes/no.
__construct($context, $user, $contextname)   X-Ref
Constructor

param: object $context the context this table relates to.
param: object $user the user we are generating the results for.
param: string $contextname $context->get_context_name() - to save recomputing.

add_header_cells()   X-Ref
No description

num_extra_columns()   X-Ref
No description

get_row_classes($capability)   X-Ref
No description

add_row_cells($capability)   X-Ref
No description