Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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