|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($context, $roleid, $safeoverridesonly) | |
| has_locked_capabilities () | |
Protected Member Functions | |
| load_parent_permissions () | |
| add_permission_cells ($capability) | |
Protected Attributes | |
| $strnotset | |
| $haslockedcapabilities = false | |
| __construct | ( | $ | context, |
| $ | roleid, | ||
| $ | safeoverridesonly | ||
| ) |
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.
| object | $context | the context this table relates to. |
| integer | $roleid | the role being overridden. |
| boolean | $safeoverridesonly | If true, the user is only allowed to override capabilities with no risks. |
Determine which capabilities should be locked.
Reimplemented from capability_table_with_risks.
Definition at line 919 of file lib.php.

| add_permission_cells | ( | $ | capability | ) | [protected] |
One cell for each possible permission.
Reimplemented from capability_table_with_risks.
| load_parent_permissions | ( | ) | [protected] |
Get the capabilities from the parent context, so that can be shown in the interface.
Reimplemented from capability_table_with_risks.
Definition at line 935 of file lib.php.
