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

Public Member Functions

 __construct ($context, $user, $contextname)

Protected Member Functions

 add_header_cells ()
 num_extra_columns ()
 get_row_classes ($capability)
 add_row_cells ($capability)

Protected Attributes

 $user
 $fullname
 $contextname
 $stryes
 $strno

Detailed Description

Subclass of capability_table_base for use on the Check permissions page.

We have one additional column, Allowed, which contains yes/no.

Definition at line 185 of file lib.php.


Constructor & Destructor Documentation

__construct ( context,
user,
contextname 
)

Constructor

Parameters:
object$contextthe context this table relates to.
object$userthe user we are generating the results for.
string$contextnameprint_context_name($context) - to save recomputing.

Definition at line 199 of file lib.php.


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 209 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 226 of file lib.php.

get_row_classes ( capability) [protected]

For subclasses to override. A change to reaturn class names that are added to the class="" attribute on the <tr> for this capability.

Parameters:
object$capabilitythe capability this row relates to.
Returns:
array of class name strings.

Reimplemented from capability_table_base.

Definition at line 217 of file lib.php.

Here is the call 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 213 of file lib.php.


Field Documentation

$contextname [protected]

Definition at line 188 of file lib.php.

$fullname [protected]

Definition at line 187 of file lib.php.

$strno [protected]

Definition at line 190 of file lib.php.

$stryes [protected]

Definition at line 189 of file lib.php.

$user [protected]

Definition at line 186 of file lib.php.


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