Public Member Functions | |
RoleManager ($db) | |
get_role_id ($pid, $name) | |
get_role ($pId, $roleId) | |
role_name_exists ($pid, $name) | |
map_user_to_role ($pId, $user, $roleId) | |
remove_mapping ($user, $roleId) | |
list_mappings ($pId, $offset, $maxRecords, $sort_mode, $find) | |
list_roles ($pId, $offset, $maxRecords, $sort_mode, $find, $where='') | |
remove_role ($pId, $roleId) | |
replace_role ($pId, $roleId, $vars) |
Definition at line 17 of file RoleManager.php.
|
Constructor takes a PEAR::Db object to be used to manipulate roles in the database. Definition at line 23 of file RoleManager.php. |
|
Gets a role fields are returned as an asociative array Definition at line 40 of file RoleManager.php. |
|
List mappings Definition at line 80 of file RoleManager.php. |
|
Lists roles at a per-process level Definition at line 108 of file RoleManager.php. |
|
Maps a user to a role Definition at line 60 of file RoleManager.php. |
|
Removes a mapping Definition at line 71 of file RoleManager.php. |
|
Removes a role. Definition at line 142 of file RoleManager.php. |
|
Updates or inserts a new role in the database, $vars is an asociative array containing the fields to update or to insert as needed. $pId is the processId $roleId is the roleId Definition at line 158 of file RoleManager.php. |
|
Indicates if a role exists Definition at line 51 of file RoleManager.php. |