|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
class ilRbacReview Contains Review functions of core Rbac. More...
Collaboration diagram for ilRbacReview:Public Member Functions | |
| __construct () | |
| Constructor public. More... | |
| roleExists (string $a_title, int $a_id=0) | |
| Checks if a role already exists. More... | |
| getParentRoleIds (int $a_endnode_id, bool $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. More... | |
| getRoleListByObject (int $a_ref_id, bool $a_templates=false) | |
| Returns a list of roles in an container. More... | |
| getAssignableRoles (bool $a_templates=false, bool $a_internal_roles=false, string $title_filter='') | |
| Returns a list of all assignable roles. More... | |
| getAssignableRolesInSubtree (int $ref_id) | |
| Returns a list of assignable roles in a subtree of the repository. More... | |
| getAssignableChildRoles (int $a_ref_id) | |
| Get all assignable roles directly under a specific node. More... | |
| getNumberOfAssignedUsers (array $a_roles) | |
| Get the number of assigned users to roles (not properly deleted user accounts are not counted) More... | |
| assignedUsers (int $a_rol_id) | |
| get all assigned users to a given role More... | |
| isAssigned (int $a_usr_id, int $a_role_id) | |
| check if a specific user is assigned to specific role More... | |
| isAssignedToAtLeastOneGivenRole (int $a_usr_id, array $a_role_ids) | |
| check if a specific user is assigned to at least one of the given role ids. More... | |
| assignedRoles (int $a_usr_id) | |
| get all assigned roles to a given user More... | |
| assignedGlobalRoles (int $a_usr_id) | |
| Get assigned global roles for an user. More... | |
| isAssignable (int $a_rol_id, int $a_ref_id) | |
| Check if its possible to assign users. More... | |
| hasMultipleAssignments (int $a_role_id) | |
| getFoldersAssignedToRole (int $a_rol_id, bool $a_assignable=false) | |
| Returns an array of objects assigned to a role. More... | |
| getRolesOfObject (int $a_ref_id, bool $a_assignable_only=false) | |
| Get roles of object. More... | |
| getRolesOfRoleFolder (int $a_ref_id, bool $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 public More... | |
| getGlobalRoles () | |
| get only 'global' roles More... | |
| getLocalRoles (int $a_ref_id) | |
| Get local roles of object. More... | |
| getLocalPolicies (int $a_ref_id) | |
| Get all roles with local policies. More... | |
| getGlobalRolesArray () | |
| get only 'global' roles More... | |
| getGlobalAssignableRoles () | |
| get only 'global' roles (with flag 'assign_users') More... | |
| isRoleAssignedToObject (int $a_role_id, int $a_parent_id) | |
| Check if role is assigned to an object. More... | |
| getOperations () | |
| get all possible operations More... | |
| getOperation (int $ops_id) | |
| get one operation by operation id More... | |
| getAllOperationsOfRole (int $a_rol_id, int $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 More... | |
| getActiveOperationsOfRole (int $a_ref_id, int $a_role_id) | |
| Get active operations for a role. More... | |
| getOperationsOfRole (int $a_rol_id, string $a_type, int $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 More... | |
| getRoleOperationsOnObject (int $a_role_id, int $a_ref_id) | |
| getOperationsOnType (int $a_typ_id) | |
| all possible operations of a type More... | |
| getOperationsOnTypeString (string $a_type) | |
| all possible operations of a type More... | |
| getOperationsByTypeAndClass (string $a_type, string $a_class) | |
| Get operations by type and class. More... | |
| getObjectsWithStopedInheritance (int $a_rol_id, array $a_filter=[]) | |
| 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 (int $a_node_id) | |
| Checks if a rolefolder is set as deleted (negative tree_id) More... | |
| isGlobalRole (int $a_role_id) | |
| Check if role is a global role. More... | |
| getRolesByFilter (int $a_filter=0, int $a_user_id=0, string $title_filter='') | |
| getTypeId (string $a_type) | |
| isProtected (int $a_ref_id, int $a_role_id) | |
| ref_id not used yet. More... | |
| isBlockedAtPosition (int $a_role_id, int $a_ref_id) | |
| isBlockedInUpperContext (int $a_role_id, int $a_ref_id) | |
| Check if role is blocked in upper context. More... | |
| getObjectOfRole (int $a_role_id) | |
| Get object id of objects a role is assigned to. More... | |
| getObjectReferenceOfRole (int $a_role_id) | |
| isRoleDeleted (int $a_role_id) | |
| return if role is only attached to deleted role folders More... | |
| getRolesForIDs (array $role_ids, bool $use_templates) | |
| getOperationAssignment () | |
| get operation assignments More... | |
| isDeleteable (int $a_role_id, int $a_rolf_id) | |
| Check if role is deleteable at a specific position. More... | |
| isSystemGeneratedRole (int $a_role_id) | |
| Check if the role is system generate role or role template. More... | |
| getRoleFolderOfRole (int $a_role_id) | |
| getUserPermissionsOnObject (int $a_user_id, int $a_ref_id) | |
| Get all user permissions on an object. More... | |
| setAssignedCacheEntry (int $a_role_id, int $a_user_id, bool $a_value) | |
| set entry of assigned_chache More... | |
| getAssignedCacheEntry (int $a_role_id, int $a_user_id) | |
| clearCaches () | |
| Clear assigned users caches. More... | |
Static Public Member Functions | |
| static | _getOperationIdsByName (array $operations) |
| get ops_id's by name. More... | |
| static | _getOperationIdByName (string $a_operation) |
| get operation id by name of operation More... | |
| static | lookupCreateOperationIds (array $a_type_arr) |
| Lookup operation ids. More... | |
| static | _getOperationList (string $a_type='') |
| get operation list by object type More... | |
| static | _groupOperationsByClass (array $a_ops_arr) |
| static | _getCustomRBACOperationId (string $operation, \ilDBInterface $ilDB=null) |
| static | _isRBACOperation (int $type_id, int $ops_id, \ilDBInterface $ilDB=null) |
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 (array $a_path, bool $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 (bool $a_templates) | |
| get roles and templates or only roles; returns string for where clause More... | |
| __setRoleType (array $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 (array $a_parent_roles, array $a_role_hierarchy, int $a_ref_id) | |
Protected Attributes | |
| ilLogger | $log |
| ilDBInterface | $db |
Static Protected Attributes | |
| static array | $assigned_users_cache = [] |
| static array | $is_assigned_cache = [] |
Private Member Functions | |
| getAssignableRolesGenerator (bool $a_templates=false, bool $a_internal_roles=false, string $title_filter='') | |
| setRoleTypeAndProtection (array $role_list_entry) | |
| buildRoleType (array $role_list_entry) | |
| buildProtectionByStringValue (string $value) | |
Static Private Attributes | |
| static array | $_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.
-type RoleListEntry array{obj_id: int, rol_id: int, parent: int, user_id: int, owner: int, title: ?string, desc: string, description: string, create_date: ?string, last_update: ?string, import_id: ?string, tile_image_rid: ?string, role_type: string, offline: ?int, type: string, assign: string, protected: bool, blocked: int, rol_id: int}
Definition at line 33 of file class.ilRbacReview.php.
| ilRbacReview::__construct | ( | ) |
Constructor public.
Definition at line 55 of file class.ilRbacReview.php.
References $DIC, and ilLoggerFactory\getLogger().
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
| array | array with path_ids |
| bool | true for role templates (default: false) |
Definition at line 95 of file class.ilRbacReview.php.
References $id, $ref_id, __setProtectedStatus(), getRoleListByObject(), and ILIAS\Repository\int().
Referenced by getParentRoleIds().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1085 of file class.ilRbacReview.php.
References $DIC, assignedRoles(), and SYSTEM_ROLE_ID.
Referenced by __getParentRoles().
Here is the call 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
Definition at line 285 of file class.ilRbacReview.php.
References ILIAS\LTI\ToolProvider\$key, and setRoleTypeAndProtection().
Referenced by getRoleListByObject(), and getRolesForIDs().
Here is the call 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
Definition at line 268 of file class.ilRbacReview.php.
Referenced by getAssignableRolesGenerator(), getRoleListByObject(), and getRolesForIDs().
Here is the caller graph for this function:
|
static |
Definition at line 1392 of file class.ilRbacReview.php.
References $DIC, $ilDB, and $res.
Referenced by ILIAS\Wiki\Setup\AccessRBACOperationClonedObjective\achieve(), ilAccessRolePermissionSetObjective\achieve(), ilAccessCustomRBACOperationAddedObjective\achieve(), ilAccessRbacStandardOperationsAddedObjective\achieve(), ilAccessInitialPermissionGuidelineAppliedObjective\achieve(), ilDBUpdateNewObjectType\addCustomRBACOperation(), ilDBUpdateNewObjectType\addRBACOperations(), ilDBUpdateNewObjectType\applyInitialPermissionGuideline(), ilAccessRbacStandardOperationsAddedObjective\isApplicable(), ilAccessCustomRBACOperationAddedObjective\isApplicable(), ilAccessInitialPermissionGuidelineAppliedObjective\isApplicable(), and ilDBUpdateNewObjectType\setRolePermission().
Here is the caller graph for this function:
|
static |
get operation id by name of operation
Definition at line 965 of file class.ilRbacReview.php.
References $DIC, $ilDB, $q, $r, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilRepositoryObjectPlugin\beforeActivation(), ilRbacSystem\checkAccessOfUser(), and ilObjBlog\getRolesWithContributeOrRedact().
Here is the call 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));
Definition at line 942 of file class.ilRbacReview.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilUtil\_getObjectsByOperations(), ilLTIProviderObjectSettingGUI\checkLocalRole(), and ilECSObjectSettings\handlePermissionUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
get operation list by object type
Definition at line 1123 of file class.ilRbacReview.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilSettingsPermissionGUI\__construct(), ilObjTypeDefinitionGUI\editObject(), ilObjectPermissionStatusGUI\getAccessPermissionTableData(), ilObjectPermissionStatusGUI\getAssignedValidRoles(), and ilObjTypeDefinitionGUI\viewObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 1156 of file class.ilRbacReview.php.
References ILIAS\Repository\int().
Here is the call graph for this function:
|
static |
Definition at line 1414 of file class.ilRbacReview.php.
Referenced by ilTreeAdminNodeAddedObjective\achieve(), ilAccessRbacStandardOperationsAddedObjective\achieve(), and ilAccessRbacStandardOperationsAddedObjective\isApplicable().
Here is the caller graph for this function:| ilRbacReview::assignedGlobalRoles | ( | int | $a_usr_id | ) |
Get assigned global roles for an user.
Definition at line 427 of file class.ilRbacReview.php.
References $res, ROLE_FOLDER_ID, and ilDBConstants\T_INTEGER.
| ilRbacReview::assignedRoles | ( | int | $a_usr_id | ) |
get all assigned roles to a given user
| int | usr_id |
Definition at line 412 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by __setProtectedStatus(), ILIAS\Portfolio\Administration\PortfolioRoleAssignmentManager\assignPortfoliosOnLogin(), ilObjCategoryGUI\assignRolesObject(), ilObjCategoryGUI\assignSaveObject(), ilObjCategoryGUI\checkGlobalRoles(), ilObjCategoryGUI\getAssignableRoles(), getRolesByFilter(), ilCalendarShared\getSharedCalendarsForUser(), ilCalendarShared\isSharedWithUser(), and ilObjCategoryGUI\listUsersObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::assignedUsers | ( | int | $a_rol_id | ) |
get all assigned users to a given role
| int | $a_rol_id |
Definition at line 349 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by ilContributorTableGUI\getItems().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 317 of file class.ilRbacReview.php.
Referenced by setRoleTypeAndProtection().
Here is the caller graph for this function:
|
private |
Definition at line 300 of file class.ilRbacReview.php.
References ROLE_FOLDER_ID.
Referenced by setRoleTypeAndProtection().
Here is the caller graph for this function:| ilRbacReview::clearCaches | ( | ) |
Clear assigned users caches.
Definition at line 1386 of file class.ilRbacReview.php.
| ilRbacReview::getActiveOperationsOfRole | ( | int | $a_ref_id, |
| int | $a_role_id | ||
| ) |
Get active operations for a role.
Definition at line 687 of file class.ilRbacReview.php.
References $res, and ilDBConstants\FETCHMODE_ASSOC.
| ilRbacReview::getAllOperationsOfRole | ( | int | $a_rol_id, |
| int | $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
Definition at line 667 of file class.ilRbacReview.php.
References $res, ILIAS\Repository\int(), and ROLE_FOLDER_ID.
Here is the call graph for this function:| ilRbacReview::getAssignableChildRoles | ( | int | $a_ref_id | ) |
Get all assignable roles directly under a specific node.
Definition at line 245 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by ilObjCategoryGUI\getAssignableRoles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getAssignableRoles | ( | bool | $a_templates = false, |
| bool | $a_internal_roles = false, |
||
| string | $title_filter = '' |
||
| ) |
Returns a list of all assignable roles.
Definition at line 168 of file class.ilRbacReview.php.
References getAssignableRolesGenerator().
Here is the call graph for this function:
|
private |
Definition at line 185 of file class.ilRbacReview.php.
References $res, __setTemplateFilter(), ILIAS\Repository\int(), and setRoleTypeAndProtection().
Referenced by getAssignableRoles(), and getRolesByFilter().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getAssignableRolesInSubtree | ( | int | $ref_id | ) |
Returns a list of assignable roles in a subtree of the repository.
Currently this is not possible due to init sequence
Definition at line 219 of file class.ilRbacReview.php.
References $DIC, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Here is the call graph for this function:| ilRbacReview::getAssignedCacheEntry | ( | int | $a_role_id, |
| int | $a_user_id | ||
| ) |
Definition at line 1378 of file class.ilRbacReview.php.
| ilRbacReview::getFoldersAssignedToRole | ( | int | $a_rol_id, |
| bool | $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 public
| int | role id |
| bool | get only rolefolders where role is assignable (true) |
Definition at line 480 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by isRoleDeleted().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getGlobalAssignableRoles | ( | ) |
get only 'global' roles (with flag 'assign_users')
Definition at line 604 of file class.ilRbacReview.php.
References ilObjRole\_getAssignUsersStatus(), and getGlobalRoles().
Referenced by ilObjCategoryGUI\checkGlobalRoles(), ilObjCategoryGUI\getAssignableRoles(), and ilObjCategoryGUI\listUsersObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getGlobalRoles | ( | ) |
get only 'global' roles
Definition at line 555 of file class.ilRbacReview.php.
References getRolesOfRoleFolder(), and ROLE_FOLDER_ID.
Referenced by ilObjCategoryGUI\checkGlobalRoles(), ILIAS\Portfolio\Administration\PortfolioRoleAssignmentManager\getAvailableRoles(), getGlobalAssignableRoles(), getRolesByFilter(), and isGlobalRole().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getGlobalRolesArray | ( | ) |
get only 'global' roles
Definition at line 590 of file class.ilRbacReview.php.
References getRolesOfRoleFolder(), and ROLE_FOLDER_ID.
Referenced by ilObjCategoryGUI\checkGlobalRoles(), and ilObjCategoryGUI\getAssignableRoles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getLocalPolicies | ( | int | $a_ref_id | ) |
Get all roles with local policies.
Definition at line 578 of file class.ilRbacReview.php.
References getRolesOfRoleFolder().
Here is the call graph for this function:| ilRbacReview::getLocalRoles | ( | int | $a_ref_id | ) |
Get local roles of object.
Definition at line 563 of file class.ilRbacReview.php.
References getRolesOfRoleFolder(), and isAssignable().
Here is the call graph for this function:| ilRbacReview::getNumberOfAssignedUsers | ( | array | $a_roles | ) |
Get the number of assigned users to roles (not properly deleted user accounts are not counted)
| int[] | $a_roles |
Definition at line 329 of file class.ilRbacReview.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Here is the call graph for this function:| ilRbacReview::getObjectOfRole | ( | int | $a_role_id | ) |
Get object id of objects a role is assigned to.
Definition at line 1171 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by ilLDAPRoleGroupMappingSettings\_deleteByServerId().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getObjectReferenceOfRole | ( | int | $a_role_id | ) |
Definition at line 1194 of file class.ilRbacReview.php.
References $res, and ilDBConstants\FETCHMODE_OBJECT.
| ilRbacReview::getObjectsWithStopedInheritance | ( | int | $a_rol_id, |
| array | $a_filter = [] |
||
| ) |
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.
Definition at line 800 of file class.ilRbacReview.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Here is the call graph for this function:| ilRbacReview::getOperation | ( | int | $ops_id | ) |
get one operation by operation id
Definition at line 649 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Here is the call graph for this function:| ilRbacReview::getOperationAssignment | ( | ) |
get operation assignments
Definition at line 1249 of file class.ilRbacReview.php.
References $DIC, $res, and ILIAS\Repository\int().
Here is the call graph for this function:| ilRbacReview::getOperations | ( | ) |
get all possible operations
Definition at line 632 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Here is the call graph for this function:| ilRbacReview::getOperationsByTypeAndClass | ( | string | $a_type, |
| string | $a_class | ||
| ) |
Get operations by type and class.
Definition at line 772 of file class.ilRbacReview.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilPermissionGUI\savePermissions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getOperationsOfRole | ( | int | $a_rol_id, |
| string | $a_type, | ||
| int | $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
Definition at line 704 of file class.ilRbacReview.php.
References $res, and ROLE_FOLDER_ID.
| ilRbacReview::getOperationsOnType | ( | int | $a_typ_id | ) |
all possible operations of a type
Definition at line 742 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by getOperationsOnTypeString().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getOperationsOnTypeString | ( | string | $a_type | ) |
all possible operations of a type
Definition at line 759 of file class.ilRbacReview.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and getOperationsOnType().
Here is the call graph for this function:| ilRbacReview::getParentRoleIds | ( | int | $a_endnode_id, |
| bool | $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.
| int | ref_id of an object which is end node |
| bool | true for role templates (default: false) |
Definition at line 122 of file class.ilRbacReview.php.
References $DIC, __getParentRoles(), and ROLE_FOLDER_ID.
Referenced by ilContainerGUI\performPasteIntoMultipleObjectsObject(), and ilPermissionGUI\savePermissions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getRoleFolderOfRole | ( | int | $a_role_id | ) |
Definition at line 1325 of file class.ilRbacReview.php.
References $res, ilObject\_lookupType(), and ilDBConstants\FETCHMODE_OBJECT.
Referenced by isSystemGeneratedRole().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getRoleListByObject | ( | int | $a_ref_id, |
| bool | $a_templates = false |
||
| ) |
Returns a list of roles in an container.
Definition at line 140 of file class.ilRbacReview.php.
References $res, __setRoleType(), __setTemplateFilter(), and ILIAS\Repository\int().
Referenced by __getParentRoles(), and isSystemGeneratedRole().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getRoleOperationsOnObject | ( | int | $a_role_id, |
| int | $a_ref_id | ||
| ) |
Definition at line 723 of file class.ilRbacReview.php.
References $res.
Referenced by ilPermissionGUI\savePermissions().
Here is the caller graph for this function:| ilRbacReview::getRolesByFilter | ( | int | $a_filter = 0, |
| int | $a_user_id = 0, |
||
| string | $title_filter = '' |
||
| ) |
Definition at line 851 of file class.ilRbacReview.php.
References $res, assignedRoles(), ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), getAssignableRolesGenerator(), getGlobalRoles(), ILIAS\Repository\int(), and setRoleTypeAndProtection().
Here is the call graph for this function:| ilRbacReview::getRolesForIDs | ( | array | $role_ids, |
| bool | $use_templates | ||
| ) |
Definition at line 1226 of file class.ilRbacReview.php.
References $res, __setRoleType(), __setTemplateFilter(), and ILIAS\Repository\int().
Here is the call graph for this function:| ilRbacReview::getRolesOfObject | ( | int | $a_ref_id, |
| bool | $a_assignable_only = false |
||
| ) |
Get roles of object.
Definition at line 501 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Here is the call graph for this function:| ilRbacReview::getRolesOfRoleFolder | ( | int | $a_ref_id, |
| bool | $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 public
| int | ref_id of object |
| bool | if false only get true local roles |
Definition at line 530 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by ilObjSessionGUI\getDefaultMemberRole(), getGlobalRoles(), getGlobalRolesArray(), getLocalPolicies(), getLocalRoles(), and ilObjSessionGUI\getLocalRoles().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::getTypeId | ( | string | $a_type | ) |
Definition at line 927 of file class.ilRbacReview.php.
References $q, $r, and ilDBConstants\FETCHMODE_OBJECT.
| ilRbacReview::getUserPermissionsOnObject | ( | int | $a_user_id, |
| int | $a_ref_id | ||
| ) |
Get all user permissions on an object.
Definition at line 1346 of file class.ilRbacReview.php.
References $res.
| ilRbacReview::hasMultipleAssignments | ( | int | $a_role_id | ) |
Definition at line 463 of file class.ilRbacReview.php.
References $res.
| ilRbacReview::isAssignable | ( | int | $a_rol_id, |
| int | $a_ref_id | ||
| ) |
Check if its possible to assign users.
Definition at line 446 of file class.ilRbacReview.php.
References $res, and SYSTEM_ROLE_ID.
Referenced by getLocalRoles(), isDeleteable(), ilRecommendedContentRoleConfigGUI\listItems(), and ilPermissionGUI\savePermissions().
Here is the caller graph for this function:| ilRbacReview::isAssigned | ( | int | $a_usr_id, |
| int | $a_role_id | ||
| ) |
check if a specific user is assigned to specific role
Definition at line 368 of file class.ilRbacReview.php.
References $res, and ilDBConstants\T_INTEGER.
Referenced by ilPortfolioAccessHandler\checkAccessOfUser(), and ilWorkspaceAccessHandler\checkAccessOfUser().
Here is the caller graph for this function:| ilRbacReview::isAssignedToAtLeastOneGivenRole | ( | int | $a_usr_id, |
| array | $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.
| int | usr_id |
| int[] | role_ids |
Definition at line 392 of file class.ilRbacReview.php.
References $DIC, $res, and ilDBConstants\T_INTEGER.
| ilRbacReview::isBlockedAtPosition | ( | int | $a_role_id, |
| int | $a_ref_id | ||
| ) |
Definition at line 1040 of file class.ilRbacReview.php.
References $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilPermissionGUI\getModifiedBlockedSettings(), isBlockedInUpperContext(), and ilPermissionGUI\savePermissions().
Here is the caller graph for this function:| ilRbacReview::isBlockedInUpperContext | ( | int | $a_role_id, |
| int | $a_ref_id | ||
| ) |
Check if role is blocked in upper context.
Currently this is not possible due to init sequence
Definition at line 1056 of file class.ilRbacReview.php.
References $DIC, $res, ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), and isBlockedAtPosition().
Here is the call graph for this function:| ilRbacReview::isDeleteable | ( | int | $a_role_id, |
| int | $a_rolf_id | ||
| ) |
Check if role is deleteable at a specific position.
Definition at line 1275 of file class.ilRbacReview.php.
References ilObject\_lookupTitle(), ANONYMOUS_ROLE_ID, isAssignable(), and SYSTEM_ROLE_ID.
Here is the call graph for this function:| ilRbacReview::isDeleted | ( | int | $a_node_id | ) |
Checks if a rolefolder is set as deleted (negative tree_id)
Definition at line 822 of file class.ilRbacReview.php.
References $message, $q, $r, ilDBConstants\FETCHMODE_OBJECT, and ilDBConstants\T_INTEGER.
Referenced by isRoleDeleted().
Here is the caller graph for this function:| ilRbacReview::isGlobalRole | ( | int | $a_role_id | ) |
Check if role is a global role.
Definition at line 843 of file class.ilRbacReview.php.
References getGlobalRoles().
Here is the call graph for this function:| ilRbacReview::isProtected | ( | int | $a_ref_id, |
| int | $a_role_id | ||
| ) |
ref_id not used yet.
Protected permission acts 'global' for each role,
Definition at line 1027 of file class.ilRbacReview.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and ilDBConstants\T_INTEGER.
Referenced by ilPermissionGUI\savePermissions().
Here is the caller graph for this function:| ilRbacReview::isRoleAssignedToObject | ( | int | $a_role_id, |
| int | $a_parent_id | ||
| ) |
Check if role is assigned to an object.
Definition at line 620 of file class.ilRbacReview.php.
References $res.
| ilRbacReview::isRoleDeleted | ( | int | $a_role_id | ) |
return if role is only attached to deleted role folders
Definition at line 1210 of file class.ilRbacReview.php.
References getFoldersAssignedToRole(), and isDeleted().
Here is the call graph for this function:| ilRbacReview::isSystemGeneratedRole | ( | int | $a_role_id | ) |
Check if the role is system generate role or role template.
Definition at line 1292 of file class.ilRbacReview.php.
References $DIC, $ref_id, ilObject\_lookupTitle(), getRoleFolderOfRole(), getRoleListByObject(), and ROLE_FOLDER_ID.
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 994 of file class.ilRbacReview.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilObjectXMLWriter\appendOperations(), ilObjectRoleTemplatePermissionTableGUI\parse(), ilObjectRolePermissionTableGUI\parse(), and ilPermissionGUI\savePermissions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilRbacReview::roleExists | ( | string | $a_title, |
| int | $a_id = 0 |
||
| ) |
Checks if a role already exists.
Role title should be unique public
| string | role title |
| ?int | obj_id of role to exclude in the check. Commonly this is the current role you want to edit |
Definition at line 70 of file class.ilRbacReview.php.
References $q, $r, ilDBConstants\FETCHMODE_OBJECT, and ilDBConstants\T_TEXT.
| ilRbacReview::setAssignedCacheEntry | ( | int | $a_role_id, |
| int | $a_user_id, | ||
| bool | $a_value | ||
| ) |
set entry of assigned_chache
Definition at line 1373 of file class.ilRbacReview.php.
|
private |
Definition at line 293 of file class.ilRbacReview.php.
References buildProtectionByStringValue(), and buildRoleType().
Referenced by __setRoleType(), getAssignableRolesGenerator(), and getRolesByFilter().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 43 of file class.ilRbacReview.php.
|
staticprotected |
Definition at line 45 of file class.ilRbacReview.php.
|
protected |
Definition at line 49 of file class.ilRbacReview.php.
|
staticprotected |
Definition at line 46 of file class.ilRbacReview.php.
|
protected |
Definition at line 48 of file class.ilRbacReview.php.
| const ilRbacReview::FILTER_ALL = 1 |
Definition at line 35 of file class.ilRbacReview.php.
Referenced by ilRoleTableGUI\initFilter(), and ilRoleTableGUI\parse().
| const ilRbacReview::FILTER_ALL_GLOBAL = 2 |
Definition at line 36 of file class.ilRbacReview.php.
Referenced by ilADNNotificationUIFormGUI\getHTML(), and ilRoleTableGUI\initFilter().
| const ilRbacReview::FILTER_ALL_LOCAL = 3 |
Definition at line 37 of file class.ilRbacReview.php.
Referenced by ilRoleTableGUI\initFilter().
| const ilRbacReview::FILTER_INTERNAL = 4 |
Definition at line 38 of file class.ilRbacReview.php.
Referenced by ilRoleTableGUI\initFilter().
| const ilRbacReview::FILTER_NOT_INTERNAL = 5 |
Definition at line 39 of file class.ilRbacReview.php.
Referenced by ilRoleTableGUI\initFilter().
| const ilRbacReview::FILTER_TEMPLATES = 6 |
Definition at line 40 of file class.ilRbacReview.php.
Referenced by ilRoleTableGUI\initFilter().