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 |
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 |