Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.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