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

Public Member Functions

 __construct ($context, $contextname, $allowoverrides, $allowsafeoverrides, $overridableroles)

Protected Member Functions

 add_header_cells ()
 num_extra_columns ()
 add_row_cells ($capability)
 get_risks ($capability)

Protected Attributes

 $contextname
 $allowoverrides
 $allowsafeoverrides
 $overridableroles
 $roles
 $icons = array()

Detailed Description

Subclass of capability_table_base for use on the Permissions page.

Definition at line 245 of file lib.php.


Constructor & Destructor Documentation

__construct ( context,
contextname,
allowoverrides,
allowsafeoverrides,
overridableroles 
)

Constructor

Parameters:
object$contextthe context this table relates to.
string$contextnameprint_context_name($context) - to save recomputing.

Definition at line 258 of file lib.php.

Here is the call graph for this function:


Member Function Documentation

add_header_cells ( ) [protected]

For subclasses to override, output header cells, after the initial capability one.

Reimplemented from capability_table_base.

Definition at line 275 of file lib.php.

add_row_cells ( capability) [protected]

For subclasses to override. Output the data cells for this capability. The capability name cell will already have been output.

You can rely on get_row_classes always being called before add_row_cells.

Parameters:
object$capabilitythe capability this row relates to.

Reimplemented from capability_table_base.

Definition at line 285 of file lib.php.

Here is the call graph for this function:

get_risks ( capability) [protected]

Definition at line 347 of file lib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

num_extra_columns ( ) [protected]

For subclasses to override, return the number of cells that add_header_cells/add_row_cells output.

Reimplemented from capability_table_base.

Definition at line 281 of file lib.php.


Field Documentation

$allowoverrides [protected]

Definition at line 247 of file lib.php.

$allowsafeoverrides [protected]

Definition at line 248 of file lib.php.

$contextname [protected]

Definition at line 246 of file lib.php.

$icons = array() [protected]

Definition at line 251 of file lib.php.

$overridableroles [protected]

Definition at line 249 of file lib.php.

$roles [protected]

Definition at line 250 of file lib.php.


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