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.

override permissions table.

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

Defines 1 class

core_role_override_permissions_table_advanced:: (5 methods):
  __construct()
  get_row_attributes()
  load_parent_permissions()
  has_locked_capabilities()
  add_permission_cells()


Class: core_role_override_permissions_table_advanced  - X-Ref

__construct($context, $roleid, $safeoverridesonly)   X-Ref
Constructor.

This method loads loads all the information about the current state of
the overrides, then updates that based on any submitted data. It also
works out which capabilities should be locked for this user.

param: object $context the context this table relates to.
param: integer $roleid the role being overridden.
param: boolean $safeoverridesonly If true, the user is only allowed to override

get_row_attributes($capability)   X-Ref
This method adds an additional class to a row if capability is other than inherited.

param: stdClass $capability
return: array

load_parent_permissions()   X-Ref
No description

has_locked_capabilities()   X-Ref
No description

add_permission_cells($capability)   X-Ref
No description