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

Public Member Functions

 __construct ()
 get_intro_text ()

Protected Member Functions

 load_required_roles ()
 set_allow ($fromroleid, $targetroleid)
 is_allowed_target ($targetroleid)
 get_cell_tooltip ($fromrole, $targetrole)

Protected Attributes

 $allowedtargetroles

Detailed Description

Subclass of role_allow_role_page for the Allow switches tab.

Definition at line 1438 of file lib.php.


Constructor & Destructor Documentation

Definition at line 1441 of file lib.php.


Member Function Documentation

get_cell_tooltip ( fromrole,
targetrole 
) [protected]

Definition at line 1459 of file lib.php.

Snippet of text displayed above the table, telling the admin what to do.

Returns:
unknown_type

Reimplemented from role_allow_role_page.

Definition at line 1466 of file lib.php.

is_allowed_target ( targetroleid) [protected]
Parameters:
integer$targetroleida role id.
Returns:
boolean whether the user should be allowed to select this role as a target role.

Reimplemented from role_allow_role_page.

Definition at line 1455 of file lib.php.

load_required_roles ( ) [protected]

Load information about all the roles we will need information about.

Get all roles

Reimplemented from role_allow_role_page.

Definition at line 1445 of file lib.php.

set_allow ( fromroleid,
targetroleid 
) [protected]

Set one allow in the database.

Parameters:
integer$fromroleid
integer$targetroleid

Reimplemented from role_allow_role_page.

Definition at line 1451 of file lib.php.

Here is the call graph for this function:


Field Documentation

$allowedtargetroles [protected]

Definition at line 1439 of file lib.php.


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