| ILIAS
    release_5-3 Revision v5.3.23-19-g915713cf615
    | 
class ilRbacReview Contains Review functions of core Rbac. More...
 Collaboration diagram for ilRbacReview:
 Collaboration diagram for ilRbacReview:| Public Member Functions | |
| __construct () | |
| Constructor @access public.  More... | |
| roleExists ($a_title, $a_id=0) | |
| Checks if a role already exists.  More... | |
| getParentRoleIds ($a_endnode_id, $a_templates=false) | |
| get an array of parent role ids of all parent roles, if last parameter is set true you get also all parent templates @access public  More... | |
| getRoleListByObject ($a_ref_id, $a_templates=false) | |
| Returns a list of roles in an container @access public.  More... | |
| getAssignableRoles ($a_templates=false, $a_internal_roles=false, $title_filter='') | |
| Returns a list of all assignable roles @access public.  More... | |
| getAssignableRolesInSubtree ($ref_id) | |
| Returns a list of assignable roles in a subtree of the repository @access public.  More... | |
| getAssignableChildRoles ($a_ref_id) | |
| Get all assignable roles directly under a specific node @access public.  More... | |
| getNumberOfAssignedUsers (array $a_roles) | |
| Get the number of assigned users to roles @global ilDB $ilDB.  More... | |
| assignedUsers ($a_rol_id) | |
| get all assigned users to a given role @access public  More... | |
| isAssigned ($a_usr_id, $a_role_id) | |
| check if a specific user is assigned to specific role @access public  More... | |
| isAssignedToAtLeastOneGivenRole ($a_usr_id, $a_role_ids) | |
| check if a specific user is assigned to at least one of the given role ids.  More... | |
| assignedRoles ($a_usr_id) | |
| get all assigned roles to a given user @access public  More... | |
| assignedGlobalRoles ($a_usr_id) | |
| Get assigned global roles for an user.  More... | |
| isAssignable ($a_rol_id, $a_ref_id) | |
| Check if its possible to assign users @access public.  More... | |
| hasMultipleAssignments ($a_role_id) | |
| Temporary bugfix.  More... | |
| getFoldersAssignedToRole ($a_rol_id, $a_assignable=false) | |
| Returns an array of objects assigned to a role.  More... | |
| getRolesOfObject ($a_ref_id, $a_assignable_only=false) | |
| Get roles of object.  More... | |
| getRolesOfRoleFolder ($a_ref_id, $a_nonassignable=true) | |
| get all roles of a role folder including linked local roles that are created due to stopped inheritance returns an array with role ids @access public  More... | |
| getGlobalRoles () | |
| get only 'global' roles @access public  More... | |
| getLocalRoles ($a_ref_id) | |
| Get local roles of object.  More... | |
| getLocalPolicies ($a_ref_id) | |
| Get all roles with local policies.  More... | |
| getGlobalRolesArray () | |
| get only 'global' roles @access public  More... | |
| getGlobalAssignableRoles () | |
| get only 'global' roles (with flag 'assign_users') @access public  More... | |
| isRoleAssignedToObject ($a_role_id, $a_parent_id) | |
| Check if role is assigned to an object.  More... | |
| getOperations () | |
| get all possible operations @access public  More... | |
| getOperation ($ops_id) | |
| get one operation by operation id @access public  More... | |
| getAllOperationsOfRole ($a_rol_id, $a_parent=0) | |
| get all possible operations of a specific role The ref_id of the role folder (parent object) is necessary to distinguish local roles @access public  More... | |
| getActiveOperationsOfRole ($a_ref_id, $a_role_id) | |
| Get active operations for a role.  More... | |
| getOperationsOfRole ($a_rol_id, $a_type, $a_parent=0) | |
| get all possible operations of a specific role The ref_id of the role folder (parent object) is necessary to distinguish local roles @access public  More... | |
| getRoleOperationsOnObject ($a_role_id, $a_ref_id) | |
| @global ilDB $ilDB  More... | |
| getOperationsOnType ($a_typ_id) | |
| all possible operations of a type @access public  More... | |
| getOperationsOnTypeString ($a_type) | |
| all possible operations of a type @access public  More... | |
| getOperationsByTypeAndClass ($a_type, $a_class) | |
| Get operations by type and class.  More... | |
| getObjectsWithStopedInheritance ($a_rol_id, $a_filter=array()) | |
| get all objects in which the inheritance of role with role_id was stopped the function returns all reference ids of objects containing a role folder.  More... | |
| isDeleted ($a_node_id) | |
| Checks if a rolefolder is set as deleted (negative tree_id) @access public.  More... | |
| isGlobalRole ($a_role_id) | |
| Check if role is a global role.  More... | |
| getRolesByFilter ($a_filter=0, $a_user_id=0, $title_filter='') | |
| @global ilDB $ilDB  More... | |
| getTypeId ($a_type) | |
| Get type id of object @global ilDB $ilDB.  More... | |
| isProtected ($a_ref_id, $a_role_id) | |
| isBlockedAtPosition ($a_role_id, $a_ref_id) | |
| Check if role is blocked at position @global ilDB $ilDB.  More... | |
| isBlockedInUpperContext ($a_role_id, $a_ref_id) | |
| Check if role is blocked in upper context.  More... | |
| getObjectOfRole ($a_role_id) | |
| Get object id of objects a role is assigned to.  More... | |
| getObjectReferenceOfRole ($a_role_id) | |
| Get reference of role.  More... | |
| isRoleDeleted ($a_role_id) | |
| return if role is only attached to deleted role folders  More... | |
| getRolesForIDs ($role_ids, $use_templates) | |
| @global ilDB $ilDB  More... | |
| getOperationAssignment () | |
| get operation assignments  More... | |
| isDeleteable ($a_role_id, $a_rolf_id) | |
| Check if role is deleteable at a specific position.  More... | |
| isSystemGeneratedRole ($a_role_id) | |
| Check if the role is system generate role or role template.  More... | |
| getRoleFolderOfRole ($a_role_id) | |
| Get role folder of role @global ilDB $ilDB.  More... | |
| getUserPermissionsOnObject ($a_user_id, $a_ref_id) | |
| Get all user permissions on an object.  More... | |
| setAssignedCacheEntry ($a_role_id, $a_user_id, $a_value) | |
| set entry of assigned_chache  More... | |
| getAssignedCacheEntry ($a_role_id, $a_user_id) | |
| get entry of assigned_chache  More... | |
| clearCaches () | |
| Clear assigned users caches.  More... | |
| Static Public Member Functions | |
| static | _getOperationIdsByName ($operations) | 
| get ops_id's by name.  More... | |
| static | _getOperationIdByName ($a_operation) | 
| get operation id by name of operation @access public @access static  More... | |
| static | lookupCreateOperationIds ($a_type_arr) | 
| Lookup operation ids.  More... | |
| static | _getOperationList ($a_type=null) | 
| get operation list by object type @access public @access static  More... | |
| static | _groupOperationsByClass ($a_ops_arr) | 
| Data Fields | |
| const | FILTER_ALL = 1 | 
| const | FILTER_ALL_GLOBAL = 2 | 
| const | FILTER_ALL_LOCAL = 3 | 
| const | FILTER_INTERNAL = 4 | 
| const | FILTER_NOT_INTERNAL = 5 | 
| const | FILTER_TEMPLATES = 6 | 
| Protected Member Functions | |
| __getParentRoles ($a_path, $a_templates) | |
| Note: This function performs faster than the new getParentRoles function, because it uses database indexes whereas getParentRoles needs a full table space scan.  More... | |
| __setTemplateFilter ($a_templates) | |
| get roles and templates or only roles; returns string for where clause @access private  More... | |
| __setRoleType ($a_role_list) | |
| computes role type in role list array: global: roles in ROLE_FOLDER_ID local: assignable roles in other role folders linked: roles with stoppped inheritance template: role templates  More... | |
| __setProtectedStatus ($a_parent_roles, $a_role_hierarchy, $a_ref_id) | |
| Set protected status @global type $rbacsystem @global type $ilUser @global type $log.  More... | |
| Protected Attributes | |
| $log | |
| Static Protected Attributes | |
| static | $assigned_users_cache = array() | 
| static | $is_assigned_cache = array() | 
| Static Private Attributes | |
| static | $_opsCache = null | 
class ilRbacReview Contains Review functions of core Rbac.
This class offers the possibility to view the contents of the user <-> role (UR) relation and the permission <-> role (PR) relation. For example, from the UA relation the administrator should have the facility to view all user assigned to a given role.
Definition at line 19 of file class.ilRbacReview.php.
| ilRbacReview::__construct | ( | ) | 
Constructor @access public.
Definition at line 50 of file class.ilRbacReview.php.
References $ilDB, $ilErr, ilLoggerFactory\getLogger(), and PEAR_ERROR_CALLBACK.
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Note: This function performs faster than the new getParentRoles function, because it uses database indexes whereas getParentRoles needs a full table space scan.
Get parent roles in a path. If last parameter is set 'true' it delivers also all templates in the path @access protected
| array | array with path_ids | 
| boolean | true for role templates (default: false) | 
Definition at line 111 of file class.ilRbacReview.php.
References $id, $message, __setProtectedStatus(), and getRoleListByObject().
Referenced by getParentRoleIds().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
Set protected status @global type $rbacsystem @global type $ilUser @global type $log.
| type | $a_parent_roles | |
| type | $a_role_hierarchy | |
| type | $a_ref_id | 
Definition at line 1382 of file class.ilRbacReview.php.
References $ilUser, $log, and assignedRoles().
Referenced by __getParentRoles().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
computes role type in role list array: global: roles in ROLE_FOLDER_ID local: assignable roles in other role folders linked: roles with stoppped inheritance template: role templates
@access private
| array | role list | 
Definition at line 335 of file class.ilRbacReview.php.
References $key.
Referenced by getAssignableRoles(), getRoleListByObject(), getRolesByFilter(), and getRolesForIDs().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | protected | 
get roles and templates or only roles; returns string for where clause @access private
| boolean | true: with templates | 
Definition at line 310 of file class.ilRbacReview.php.
References $ilDB.
Referenced by getAssignableRoles(), getRoleListByObject(), and getRolesForIDs().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
get operation id by name of operation @access public @access static
| string | operation name | 
Definition at line 1233 of file class.ilRbacReview.php.
References $ilDB, $ilErr, $message, $r, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilRepositoryObjectPlugin\beforeActivation(), ilRbacSystem\checkAccessOfUser(), and ilObjBlog\getRolesWithContributeOrRedact().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
get ops_id's by name.
Example usage: $rbacadmin->grantPermission($roles,ilRbacReview::_getOperationIdsByName(array('visible','read'),$ref_id));
@access public
| array | string name of operation. see rbac_operations | 
Definition at line 1207 of file class.ilRbacReview.php.
References $ilDB, $query, $res, and $row.
Referenced by ilUtil\_getObjectsByOperations(), ilLicense\getPotentialAccesses(), and ilECSObjectSettings\handlePermissionUpdate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
get operation list by object type @access public @access static
| string | object type you want to have the operation list | 
| string | order column | 
| string | order direction (possible values: ASC or DESC) | 
Definition at line 1442 of file class.ilRbacReview.php.
References $a_type, $ilDB, $query, $res, $row, and sprintf.
Referenced by ilSettingsPermissionGUI\__construct(), ilObjTypeDefinitionGUI\editObject(), ilObjectPermissionStatusGUI\getAccessPermissionTableData(), ilObjectPermissionStatusGUI\getAssignedValidRoles(), and ilObjTypeDefinitionGUI\viewObject().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
| type | $a_ops_arr | 
Definition at line 1481 of file class.ilRbacReview.php.
| ilRbacReview::assignedGlobalRoles | ( | $a_usr_id | ) | 
Get assigned global roles for an user.
| int | $a_usr_id | Id of user account | 
Definition at line 495 of file class.ilRbacReview.php.
| ilRbacReview::assignedRoles | ( | $a_usr_id | ) | 
get all assigned roles to a given user @access public
| integer | usr_id | 
Definition at line 475 of file class.ilRbacReview.php.
References $ilDB, $query, $res, and $row.
Referenced by __setProtectedStatus(), and getRolesByFilter().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilRbacReview::assignedUsers | ( | $a_rol_id | ) | 
get all assigned users to a given role @access public
| integer | role_id | 
Definition at line 389 of file class.ilRbacReview.php.
References $ilBench, $ilDB, $message, $query, $res, and $row.
| ilRbacReview::clearCaches | ( | ) | 
Clear assigned users caches.
Definition at line 1757 of file class.ilRbacReview.php.
| ilRbacReview::getActiveOperationsOfRole | ( | $a_ref_id, | |
| $a_role_id | |||
| ) | 
Get active operations for a role.
| object | $a_ref_id | |
| object | $a_role_id | 
Definition at line 841 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_ASSOC.
| ilRbacReview::getAllOperationsOfRole | ( | $a_rol_id, | |
| $a_parent = 0 | |||
| ) | 
get all possible operations of a specific role The ref_id of the role folder (parent object) is necessary to distinguish local roles @access public
| integer | role_id | 
| integer | role folder id | 
Definition at line 814 of file class.ilRbacReview.php.
| ilRbacReview::getAssignableChildRoles | ( | $a_ref_id | ) | 
Get all assignable roles directly under a specific node @access public.
| ref_id | 
Definition at line 285 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and ilDB\quote().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::getAssignableRoles | ( | $a_templates = false, | |
| $a_internal_roles = false, | |||
| $title_filter = '' | |||
| ) | 
Returns a list of all assignable roles @access public.
| boolean | if true fetch template roles too | 
Definition at line 215 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, __setRoleType(), and __setTemplateFilter().
Referenced by getRolesByFilter().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilRbacReview::getAssignableRolesInSubtree | ( | $ref_id | ) | 
Returns a list of assignable roles in a subtree of the repository @access public.
| ref_id | Root node of subtree | 
Definition at line 255 of file class.ilRbacReview.php.
References $GLOBALS, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
| ilRbacReview::getAssignedCacheEntry | ( | $a_role_id, | |
| $a_user_id | |||
| ) | 
get entry of assigned_chache
| int | $a_role_id | |
| int | $a_user_id | 
Definition at line 1749 of file class.ilRbacReview.php.
| ilRbacReview::getFoldersAssignedToRole | ( | $a_rol_id, | |
| $a_assignable = false | |||
| ) | 
Returns an array of objects assigned to a role.
A role with stopped inheritance may be assigned to more than one objects. To get only the original location of a role, set the second parameter to true
@access public
| integer | role id | 
| boolean | get only rolefolders where role is assignable (true) | 
Definition at line 573 of file class.ilRbacReview.php.
References $ilDB, $message, $query, $res, and $row.
Referenced by isRoleDeleted().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilRbacReview::getGlobalAssignableRoles | ( | ) | 
get only 'global' roles (with flag 'assign_users') @access public
Definition at line 734 of file class.ilRbacReview.php.
References ilObjRole\_getAssignUsersStatus(), and getGlobalRoles().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::getGlobalRoles | ( | ) | 
get only 'global' roles @access public
Definition at line 676 of file class.ilRbacReview.php.
References getRolesOfRoleFolder().
Referenced by getGlobalAssignableRoles(), getRolesByFilter(), and isGlobalRole().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilRbacReview::getGlobalRolesArray | ( | ) | 
get only 'global' roles @access public
Definition at line 719 of file class.ilRbacReview.php.
References getRolesOfRoleFolder().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::getLocalPolicies | ( | $a_ref_id | ) | 
Get all roles with local policies.
| type | $a_ref_id | 
Definition at line 704 of file class.ilRbacReview.php.
References getRolesOfRoleFolder().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::getLocalRoles | ( | $a_ref_id | ) | 
Get local roles of object.
| int | $a_ref_id | 
Definition at line 686 of file class.ilRbacReview.php.
References $ilDB, getRolesOfRoleFolder(), and isAssignable().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::getNumberOfAssignedUsers | ( | array | $a_roles | ) | 
Get the number of assigned users to roles @global ilDB $ilDB.
| array | $a_roles | 
Definition at line 370 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
| ilRbacReview::getObjectOfRole | ( | $a_role_id | ) | 
Get object id of objects a role is assigned to.
@access public
| int | role id | 
Definition at line 1502 of file class.ilRbacReview.php.
| ilRbacReview::getObjectReferenceOfRole | ( | $a_role_id | ) | 
Get reference of role.
| object | $a_role_id | 
Definition at line 1541 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
| ilRbacReview::getObjectsWithStopedInheritance | ( | $a_rol_id, | |
| $a_filter = array() | |||
| ) | 
get all objects in which the inheritance of role with role_id was stopped the function returns all reference ids of objects containing a role folder.
@access public
| integer | role_id | 
| array | filter ref_ids | 
Definition at line 1019 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
| ilRbacReview::getOperation | ( | $ops_id | ) | 
get one operation by operation id @access public
Definition at line 790 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and ilDB\query().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::getOperationAssignment | ( | ) | 
get operation assignments
Definition at line 1617 of file class.ilRbacReview.php.
| ilRbacReview::getOperations | ( | ) | 
get all possible operations @access public
Definition at line 769 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and ilDB\query().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::getOperationsByTypeAndClass | ( | $a_type, | |
| $a_class | |||
| ) | 
Get operations by type and class.
| string | $a_type | Type is "object" or | 
| string | $a_class | 
Definition at line 982 of file class.ilRbacReview.php.
References $a_type, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
| ilRbacReview::getOperationsOfRole | ( | $a_rol_id, | |
| $a_type, | |||
| $a_parent = 0 | |||
| ) | 
get all possible operations of a specific role The ref_id of the role folder (parent object) is necessary to distinguish local roles @access public
| integer | role_id | 
| string | object type | 
| integer | role folder id | 
Definition at line 867 of file class.ilRbacReview.php.
References $a_type, $ilDB, $ilLog, $message, $query, $res, and $row.
| ilRbacReview::getOperationsOnType | ( | $a_typ_id | ) | 
all possible operations of a type @access public
| integer | object_ID of type | 
Definition at line 929 of file class.ilRbacReview.php.
References $ilDB, $message, $query, $res, and $row.
Referenced by getOperationsOnTypeString().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilRbacReview::getOperationsOnTypeString | ( | $a_type | ) | 
all possible operations of a type @access public
| integer | object_ID of type | 
Definition at line 961 of file class.ilRbacReview.php.
References $a_type, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, getOperationsOnType(), and ilDB\query().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::getParentRoleIds | ( | $a_endnode_id, | |
| $a_templates = false | |||
| ) | 
get an array of parent role ids of all parent roles, if last parameter is set true you get also all parent templates @access public
| integer | ref_id of an object which is end node | 
| boolean | true for role templates (default: false) | 
Definition at line 145 of file class.ilRbacReview.php.
References $GLOBALS, $message, and __getParentRoles().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::getRoleFolderOfRole | ( | $a_role_id | ) | 
Get role folder of role @global ilDB $ilDB.
| int | $a_role_id | 
Definition at line 1678 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, ilObject\_lookupType(), and ilDBConstants\FETCHMODE_OBJECT.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::getRoleListByObject | ( | $a_ref_id, | |
| $a_templates = false | |||
| ) | 
Returns a list of roles in an container @access public.
| integer | ref_id of object | 
| boolean | if true fetch template roles too | 
Definition at line 175 of file class.ilRbacReview.php.
References $ilDB, $message, $query, $res, $row, __setRoleType(), and __setTemplateFilter().
Referenced by __getParentRoles().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilRbacReview::getRoleOperationsOnObject | ( | $a_role_id, | |
| $a_ref_id | |||
| ) | 
| ilRbacReview::getRolesByFilter | ( | $a_filter = 0, | |
| $a_user_id = 0, | |||
| $title_filter = '' | |||
| ) | 
@global ilDB $ilDB
| type | $a_filter | |
| type | $a_user_id | |
| type | $title_filter | 
Definition at line 1098 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, __setRoleType(), assignedRoles(), FILTER_ALL, FILTER_ALL_GLOBAL, FILTER_ALL_LOCAL, FILTER_INTERNAL, FILTER_NOT_INTERNAL, FILTER_TEMPLATES, getAssignableRoles(), and getGlobalRoles().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::getRolesForIDs | ( | $role_ids, | |
| $use_templates | |||
| ) | 
@global ilDB $ilDB
| type | $role_ids | |
| type | $use_templates | 
Definition at line 1587 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, __setRoleType(), and __setTemplateFilter().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::getRolesOfObject | ( | $a_ref_id, | |
| $a_assignable_only = false | |||
| ) | 
Get roles of object.
| type | $a_ref_id | |
| type | $a_assignable | 
| InvalidArgumentException | 
Definition at line 603 of file class.ilRbacReview.php.
| ilRbacReview::getRolesOfRoleFolder | ( | $a_ref_id, | |
| $a_nonassignable = true | |||
| ) | 
get all roles of a role folder including linked local roles that are created due to stopped inheritance returns an array with role ids @access public
| integer | ref_id of object | 
| boolean | if false only get true local roles | 
Definition at line 640 of file class.ilRbacReview.php.
References $ilBench, $ilDB, $ilLog, $message, $query, $res, $row, and ilLoggerFactory\getLogger().
Referenced by getGlobalRoles(), getGlobalRolesArray(), getLocalPolicies(), and getLocalRoles().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilRbacReview::getTypeId | ( | $a_type | ) | 
Get type id of object @global ilDB $ilDB.
| type | $a_type | 
Definition at line 1185 of file class.ilRbacReview.php.
References $a_type, $ilDB, $r, $row, and ilDBConstants\FETCHMODE_OBJECT.
| ilRbacReview::getUserPermissionsOnObject | ( | $a_user_id, | |
| $a_ref_id | |||
| ) | 
Get all user permissions on an object.
| int | $a_user_id | user id | 
| int | $a_ref_id | ref id | 
Definition at line 1705 of file class.ilRbacReview.php.
| ilRbacReview::hasMultipleAssignments | ( | $a_role_id | ) | 
Temporary bugfix.
Definition at line 552 of file class.ilRbacReview.php.
| ilRbacReview::isAssignable | ( | $a_rol_id, | |
| $a_ref_id | |||
| ) | 
Check if its possible to assign users @access public.
| integer | object id of role | 
| integer | ref_id of object in question | 
Definition at line 520 of file class.ilRbacReview.php.
References $ilBench, $ilDB, $message, $query, $res, and $row.
Referenced by getLocalRoles(), and isDeleteable().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilRbacReview::isAssigned | ( | $a_usr_id, | |
| $a_role_id | |||
| ) | 
check if a specific user is assigned to specific role @access public
| integer | usr_id | 
| integer | role_id | 
Definition at line 423 of file class.ilRbacReview.php.
| ilRbacReview::isAssignedToAtLeastOneGivenRole | ( | $a_usr_id, | |
| $a_role_ids | |||
| ) | 
check if a specific user is assigned to at least one of the given role ids.
This function is used to quickly check whether a user is member of a course or a group.
@access public
| integer | usr_id | 
| array[integer] | role_ids | 
Definition at line 455 of file class.ilRbacReview.php.
| ilRbacReview::isBlockedAtPosition | ( | $a_role_id, | |
| $a_ref_id | |||
| ) | 
Check if role is blocked at position @global ilDB $ilDB.
| type | $a_role_id | |
| type | $a_ref_id | 
Definition at line 1324 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by isBlockedInUpperContext().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilRbacReview::isBlockedInUpperContext | ( | $a_role_id, | |
| $a_ref_id | |||
| ) | 
Check if role is blocked in upper context.
| type | $a_role_id | |
| type | $a_ref_id | 
Definition at line 1343 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and isBlockedAtPosition().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::isDeleteable | ( | $a_role_id, | |
| $a_rolf_id | |||
| ) | 
Check if role is deleteable at a specific position.
| object | $a_role_id | |
| int | rolf_id | 
Definition at line 1644 of file class.ilRbacReview.php.
References ilObject\_lookupTitle(), and isAssignable().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::isDeleted | ( | $a_node_id | ) | 
Checks if a rolefolder is set as deleted (negative tree_id) @access public.
| integer | ref_id of rolefolder | 
Definition at line 1050 of file class.ilRbacReview.php.
References $ilDB, $message, $r, $row, ilDBConstants\FETCHMODE_OBJECT, ilDB\query(), and sprintf.
Referenced by isRoleDeleted().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilRbacReview::isGlobalRole | ( | $a_role_id | ) | 
Check if role is a global role.
| type | $a_role_id | 
Definition at line 1084 of file class.ilRbacReview.php.
References getGlobalRoles().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::isProtected | ( | $a_ref_id, | |
| $a_role_id | |||
| ) | 
| type | $a_ref_id | |
| type | $a_role_id | 
Definition at line 1304 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and ilUtil\yn2tf().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::isRoleAssignedToObject | ( | $a_role_id, | |
| $a_parent_id | |||
| ) | 
Check if role is assigned to an object.
Definition at line 752 of file class.ilRbacReview.php.
| ilRbacReview::isRoleDeleted | ( | $a_role_id | ) | 
return if role is only attached to deleted role folders
| int | $a_role_id | 
Definition at line 1563 of file class.ilRbacReview.php.
References getFoldersAssignedToRole(), and isDeleted().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::isSystemGeneratedRole | ( | $a_role_id | ) | 
Check if the role is system generate role or role template.
| int | $a_role_id | 
Definition at line 1664 of file class.ilRbacReview.php.
References $title, and ilObject\_lookupTitle().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Lookup operation ids.
| array | $a_type_arr | e.g array('cat','crs','grp'). The operation name (e.g. 'create_cat') is generated automatically | 
Definition at line 1266 of file class.ilRbacReview.php.
References $ilDB, $query, $res, $row, and $type.
Referenced by ilObjectXMLWriter\__appendOperations(), ilObjectRolePermissionTableGUI\parse(), ilObjectRoleTemplatePermissionTableGUI\parse(), ilPermissionGUI\savePermissions(), and ilObjStudyProgrammeTest\testCreatePermissionExists().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilRbacReview::roleExists | ( | $a_title, | |
| $a_id = 0 | |||
| ) | 
Checks if a role already exists.
Role title should be unique @access public
| string | role title | 
| integer | obj_id of role to exclude in the check. Commonly this is the current role you want to edit | 
Definition at line 75 of file class.ilRbacReview.php.
References $ilDB, $message, $r, $row, ilDBConstants\FETCHMODE_OBJECT, and ilDB\query().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilRbacReview::setAssignedCacheEntry | ( | $a_role_id, | |
| $a_user_id, | |||
| $a_value | |||
| ) | 
set entry of assigned_chache
| int | $a_role_id | |
| int | $a_user_id | |
| bool | $a_value | 
Definition at line 1738 of file class.ilRbacReview.php.
| 
 | staticprivate | 
Definition at line 29 of file class.ilRbacReview.php.
| 
 | staticprotected | 
Definition at line 34 of file class.ilRbacReview.php.
| 
 | staticprotected | 
Definition at line 39 of file class.ilRbacReview.php.
| 
 | protected | 
Definition at line 44 of file class.ilRbacReview.php.
Referenced by __setProtectedStatus().
| const ilRbacReview::FILTER_ALL = 1 | 
Definition at line 21 of file class.ilRbacReview.php.
Referenced by getRolesByFilter(), ilRoleTableGUI\initFilter(), and ilRoleTableGUI\parse().
| const ilRbacReview::FILTER_ALL_GLOBAL = 2 | 
Definition at line 22 of file class.ilRbacReview.php.
Referenced by getRolesByFilter(), and ilRoleTableGUI\initFilter().
| const ilRbacReview::FILTER_ALL_LOCAL = 3 | 
Definition at line 23 of file class.ilRbacReview.php.
Referenced by getRolesByFilter(), and ilRoleTableGUI\initFilter().
| const ilRbacReview::FILTER_INTERNAL = 4 | 
Definition at line 24 of file class.ilRbacReview.php.
Referenced by getRolesByFilter(), ilRoleTableGUI\initFilter(), and ilRoleTableGUI\parse().
| const ilRbacReview::FILTER_NOT_INTERNAL = 5 | 
Definition at line 25 of file class.ilRbacReview.php.
Referenced by getRolesByFilter(), and ilRoleTableGUI\initFilter().
| const ilRbacReview::FILTER_TEMPLATES = 6 | 
Definition at line 26 of file class.ilRbacReview.php.
Referenced by getRolesByFilter(), and ilRoleTableGUI\initFilter().