Moodle  2.2.1
http://www.collinsharper.com
override_permissions_table_advanced Class Reference
Inheritance diagram for override_permissions_table_advanced:
Collaboration diagram for override_permissions_table_advanced:

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

Detailed Description

Definition at line 903 of file lib.php.


Constructor & Destructor Documentation

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

Parameters:
object$contextthe context this table relates to.
integer$roleidthe role being overridden.
boolean$safeoverridesonlyIf 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.

Here is the call graph for this function:


Member Function Documentation

add_permission_cells ( capability) [protected]

One cell for each possible permission.

Reimplemented from capability_table_with_risks.

Definition at line 947 of file lib.php.

Definition at line 943 of file lib.php.

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.

Here is the call graph for this function:


Field Documentation

$haslockedcapabilities = false [protected]

Definition at line 905 of file lib.php.

$strnotset [protected]

Definition at line 904 of file lib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations