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.

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