ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
class ilRbacReview Contains Review functions of core Rbac. More...
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 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) | |
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().
|
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().
|
protected |
Definition at line 1107 of file class.ilRbacReview.php.
References $DIC, assignedRoles(), and SYSTEM_ROLE_ID.
Referenced by __getParentRoles().
|
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 286 of file class.ilRbacReview.php.
References setRoleTypeAndProtection().
Referenced by getRoleListByObject(), and getRolesForIDs().
|
protected |
get roles and templates or only roles; returns string for where clause
Definition at line 269 of file class.ilRbacReview.php.
Referenced by getAssignableRolesGenerator(), getRoleListByObject(), and getRolesForIDs().
|
static |
Definition at line 1421 of file class.ilRbacReview.php.
References $DIC, $ilDB, $res, and null.
Referenced by ILIAS\Wiki\Setup\AccessRBACOperationClonedObjective\achieve(), ILIAS\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().
|
static |
get operation id by name of operation
Definition at line 987 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().
|
static |
get ops_id's by name.
Example usage: $rbacadmin->grantPermission($roles,ilRbacReview::_getOperationIdsByName(array('visible','read'),$ref_id));
list<string> | $operations |
Definition at line 964 of file class.ilRbacReview.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilUtil\_getObjectsByOperations(), ilLTIProviderObjectSettingGUI\checkLocalRole(), and ilECSObjectSettings\handlePermissionUpdate().
|
static |
get operation list by object type
Definition at line 1146 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().
|
static |
Definition at line 1182 of file class.ilRbacReview.php.
References ILIAS\Repository\int().
|
static |
Definition at line 1443 of file class.ilRbacReview.php.
Referenced by ilAccessRbacStandardOperationsAddedObjective\achieve(), ilTreeAdminNodeAddedObjective\achieve(), and ilAccessRbacStandardOperationsAddedObjective\isApplicable().
ilRbacReview::assignedGlobalRoles | ( | int | $a_usr_id | ) |
Get assigned global roles for an user.
Definition at line 427 of file class.ilRbacReview.php.
References $res, ILIAS\Repository\int(), ROLE_FOLDER_ID, and ilDBConstants\T_INTEGER.
ilRbacReview::assignedRoles | ( | int | $a_usr_id | ) |
get all assigned roles to a given user
Definition at line 411 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().
ilRbacReview::assignedUsers | ( | int | $a_rol_id | ) |
get all assigned users to a given role
Definition at line 349 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by ilContributorTableGUI\getItems().
|
private |
Definition at line 318 of file class.ilRbacReview.php.
Referenced by setRoleTypeAndProtection().
|
private |
Definition at line 301 of file class.ilRbacReview.php.
References ROLE_FOLDER_ID.
Referenced by setRoleTypeAndProtection().
ilRbacReview::clearCaches | ( | ) |
Clear assigned users caches.
Definition at line 1415 of file class.ilRbacReview.php.
ilRbacReview::getActiveOperationsOfRole | ( | int | $a_ref_id, |
int | $a_role_id | ||
) |
Definition at line 692 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 672 of file class.ilRbacReview.php.
References $res, ILIAS\Repository\int(), and ROLE_FOLDER_ID.
ilRbacReview::getAssignableChildRoles | ( | int | $a_ref_id | ) |
Get all assignable roles directly under a specific node.
Definition at line 246 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by ilObjCategoryGUI\getAssignableRoles().
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().
|
private |
Definition at line 185 of file class.ilRbacReview.php.
References $res, __setTemplateFilter(), ILIAS\Repository\int(), and setRoleTypeAndProtection().
Referenced by getAssignableRoles(), and getRolesByFilter().
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 220 of file class.ilRbacReview.php.
References $DIC, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
ilRbacReview::getAssignedCacheEntry | ( | int | $a_role_id, |
int | $a_user_id | ||
) |
Definition at line 1407 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 481 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by isRoleDeleted().
ilRbacReview::getGlobalAssignableRoles | ( | ) |
get only 'global' roles (with flag 'assign_users')
Definition at line 606 of file class.ilRbacReview.php.
References ilObjRole\_getAssignUsersStatus(), and getGlobalRoles().
Referenced by ilObjCategoryGUI\checkGlobalRoles(), ilObjCategoryGUI\getAssignableRoles(), and ilObjCategoryGUI\listUsersObject().
ilRbacReview::getGlobalRoles | ( | ) |
get only 'global' roles
Definition at line 554 of file class.ilRbacReview.php.
References getRolesOfRoleFolder(), and ROLE_FOLDER_ID.
Referenced by ilObjCategoryGUI\checkGlobalRoles(), ILIAS\Portfolio\Administration\PortfolioRoleAssignmentManager\getAvailableRoles(), getGlobalAssignableRoles(), getRolesByFilter(), and isGlobalRole().
ilRbacReview::getGlobalRolesArray | ( | ) |
get only 'global' roles
Definition at line 591 of file class.ilRbacReview.php.
References getRolesOfRoleFolder(), and ROLE_FOLDER_ID.
Referenced by ilObjCategoryGUI\checkGlobalRoles(), and ilObjCategoryGUI\getAssignableRoles().
ilRbacReview::getLocalPolicies | ( | int | $a_ref_id | ) |
Get all roles with local policies.
Definition at line 578 of file class.ilRbacReview.php.
References getRolesOfRoleFolder().
ilRbacReview::getLocalRoles | ( | int | $a_ref_id | ) |
Get local roles of object.
Definition at line 563 of file class.ilRbacReview.php.
References getRolesOfRoleFolder(), and isAssignable().
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 330 of file class.ilRbacReview.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
ilRbacReview::getObjectOfRole | ( | int | $a_role_id | ) |
Get object id of objects a role is assigned to.
Definition at line 1197 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by ilLDAPRoleGroupMappingSettings\_deleteByServerId().
ilRbacReview::getObjectReferenceOfRole | ( | int | $a_role_id | ) |
Definition at line 1220 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 820 of file class.ilRbacReview.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
ilRbacReview::getOperation | ( | int | $ops_id | ) |
get one operation by operation id
Definition at line 653 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
ilRbacReview::getOperationAssignment | ( | ) |
get operation assignments
Definition at line 1275 of file class.ilRbacReview.php.
References $DIC, $res, and ILIAS\Repository\int().
ilRbacReview::getOperations | ( | ) |
get all possible operations
Definition at line 635 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by ILIAS\AccessControl\Log\Table\__construct().
ilRbacReview::getOperationsByTypeAndClass | ( | string | $a_type, |
string | $a_class | ||
) |
Get operations by type and class.
Definition at line 791 of file class.ilRbacReview.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
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 713 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 759 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by getOperationsOnTypeString().
ilRbacReview::getOperationsOnTypeString | ( | string | $a_type | ) |
all possible operations of a type
Definition at line 777 of file class.ilRbacReview.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and getOperationsOnType().
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().
ilRbacReview::getRoleFolderOfRole | ( | int | $a_role_id | ) |
Definition at line 1352 of file class.ilRbacReview.php.
References $res, ilObject\_lookupType(), and ilDBConstants\FETCHMODE_OBJECT.
Referenced by isSystemGeneratedRole().
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().
ilRbacReview::getRoleOperationsOnObject | ( | int | $a_role_id, |
int | $a_ref_id | ||
) |
ilRbacReview::getRolesByFilter | ( | int | $a_filter = 0 , |
int | $a_user_id = 0 , |
||
string | $title_filter = '' |
||
) |
Definition at line 871 of file class.ilRbacReview.php.
References $res, assignedRoles(), ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), getAssignableRolesGenerator(), getGlobalRoles(), ILIAS\Repository\int(), and setRoleTypeAndProtection().
ilRbacReview::getRolesForIDs | ( | array | $role_ids, |
bool | $use_templates | ||
) |
Definition at line 1252 of file class.ilRbacReview.php.
References $res, __setRoleType(), __setTemplateFilter(), and ILIAS\Repository\int().
ilRbacReview::getRolesOfObject | ( | int | $a_ref_id, |
bool | $a_assignable_only = false |
||
) |
Get roles of object.
Definition at line 503 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
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
Definition at line 529 of file class.ilRbacReview.php.
References $res, and ILIAS\Repository\int().
Referenced by ilObjSessionGUI\getDefaultMemberRole(), getGlobalRoles(), getGlobalRolesArray(), getLocalPolicies(), getLocalRoles(), and ilObjSessionGUI\getLocalRoles().
ilRbacReview::getTypeId | ( | string | $a_type | ) |
Definition at line 947 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 1374 of file class.ilRbacReview.php.
References $res.
ilRbacReview::hasMultipleAssignments | ( | int | $a_role_id | ) |
Definition at line 464 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 447 of file class.ilRbacReview.php.
References $res, and SYSTEM_ROLE_ID.
Referenced by getLocalRoles(), isDeleteable(), and ilRecommendedContentRoleConfigGUI\listItems().
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().
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 1062 of file class.ilRbacReview.php.
References $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by isBlockedInUpperContext().
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 1078 of file class.ilRbacReview.php.
References $DIC, $res, ilDBConstants\FETCHMODE_OBJECT, ILIAS\Repository\int(), and isBlockedAtPosition().
ilRbacReview::isDeleteable | ( | int | $a_role_id, |
int | $a_rolf_id | ||
) |
Check if role is deleteable at a specific position.
Definition at line 1302 of file class.ilRbacReview.php.
References ilObject\_lookupTitle(), ANONYMOUS_ROLE_ID, isAssignable(), and SYSTEM_ROLE_ID.
ilRbacReview::isDeleted | ( | int | $a_node_id | ) |
Checks if a rolefolder is set as deleted (negative tree_id)
Definition at line 842 of file class.ilRbacReview.php.
References $message, $q, $r, ilDBConstants\FETCHMODE_OBJECT, and ilDBConstants\T_INTEGER.
Referenced by isRoleDeleted().
ilRbacReview::isGlobalRole | ( | int | $a_role_id | ) |
Check if role is a global role.
Definition at line 863 of file class.ilRbacReview.php.
References getGlobalRoles().
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 1049 of file class.ilRbacReview.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, and ilDBConstants\T_INTEGER.
ilRbacReview::isRoleAssignedToObject | ( | int | $a_role_id, |
int | $a_parent_id | ||
) |
Check if role is assigned to an object.
Definition at line 622 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 1236 of file class.ilRbacReview.php.
References getFoldersAssignedToRole(), and isDeleted().
ilRbacReview::isSystemGeneratedRole | ( | int | $a_role_id | ) |
Check if the role is system generate role or role template.
Definition at line 1319 of file class.ilRbacReview.php.
References $DIC, $ref_id, ilObject\_lookupTitle(), getRoleFolderOfRole(), getRoleListByObject(), null, and ROLE_FOLDER_ID.
|
static |
Lookup operation ids.
list<string> | $a_type_arr e.g array('cat','crs','grp'). The operation name (e.g. 'create_cat') is generated automatically |
Definition at line 1016 of file class.ilRbacReview.php.
References $DIC, $ilDB, $res, and ILIAS\Repository\int().
Referenced by ilObjectXMLWriter\appendOperations(), ilObjectRoleTemplatePermissionTableGUI\parse(), ilObjectRolePermissionTableGUI\parse(), and ilPermissionGUI\savePermissions().
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, null, 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 1402 of file class.ilRbacReview.php.
|
private |
Definition at line 294 of file class.ilRbacReview.php.
References buildProtectionByStringValue(), and buildRoleType().
Referenced by __setRoleType(), getAssignableRolesGenerator(), and getRolesByFilter().
|
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().