ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilOrgUnitPositionAccess. More...
Public Member Functions | |||||||||||||
__construct () | |||||||||||||
ilOrgUnitPositionAccess constructor. More... | |||||||||||||
filterUserIdsForCurrentUsersPositionsAndPermission (array $user_ids, $permission) | |||||||||||||
| |||||||||||||
filterUserIdsForUsersPositionsAndPermission (array $user_ids, $for_user_id, $permission) | |||||||||||||
| |||||||||||||
isCurrentUserBasedOnPositionsAllowedTo ($permission, array $on_user_ids) | |||||||||||||
| |||||||||||||
isUserBasedOnPositionsAllowedTo ($which_user_id, $permission, array $on_user_ids) | |||||||||||||
| |||||||||||||
filterUserIdsByPositionOfCurrentUser ($pos_perm, $ref_id, array $user_ids) | |||||||||||||
| |||||||||||||
filterUserIdsByPositionOfUser ($user_id, $pos_perm, $ref_id, array $user_ids) | |||||||||||||
| |||||||||||||
checkPositionAccess ($pos_perm, $ref_id) | |||||||||||||
| |||||||||||||
hasCurrentUserAnyPositionAccess ($ref_id) | |||||||||||||
| |||||||||||||
checkRbacOrPositionPermissionAccess ($rbac_perm, $pos_perm, $ref_id) | |||||||||||||
| |||||||||||||
filterUserIdsByRbacOrPositionOfCurrentUser ($rbac_perm, $pos_perm, $ref_id, array $user_ids) | |||||||||||||
| |||||||||||||
hasUserRBACorAnyPositionAccess ($rbac_perm, $ref_id) | |||||||||||||
| |||||||||||||
Protected Attributes | |
$ua | |
$set | |
Static Protected Attributes | |
static | $ref_id_obj_type_map = array() |
Private Member Functions | |
dic () | |
getCurrentUsersId () | |
getTypeForRefId ($ref_id) | |
getObjIdForRefId ($ref_id) | |
isPositionActiveForRefId ($ref_id) | |
Class ilOrgUnitPositionAccess.
Definition at line 8 of file class.ilOrgUnitPositionAccess.php.
ilOrgUnitPositionAccess::__construct | ( | ) |
ilOrgUnitPositionAccess constructor.
Definition at line 28 of file class.ilOrgUnitPositionAccess.php.
References ilOrgUnitUserAssignmentQueries\getInstance(), and ilOrgUnitGlobalSettings\getInstance().
ilOrgUnitPositionAccess::checkPositionAccess | ( | $pos_perm, | |
$ref_id | |||
) |
string | $pos_perm | |
int | $ref_id | Reference-ID of the desired Object in the tree |
Implements ilOrgUnitPositionAccessHandler.
Definition at line 161 of file class.ilOrgUnitPositionAccess.php.
References ilOrgUnitOperationQueries\findByOperationString(), getCurrentUsersId(), getTypeForRefId(), and isPositionActiveForRefId().
Referenced by ilAccess\checkPositionAccess(), and checkRbacOrPositionPermissionAccess().
ilOrgUnitPositionAccess::checkRbacOrPositionPermissionAccess | ( | $rbac_perm, | |
$pos_perm, | |||
$ref_id | |||
) |
string | $rbac_perm | |
string | $pos_perm | See the list of available permissions in interface ilOrgUnitPositionAccessHandler |
int | $ref_id | Reference-ID of the desired Object in the tree |
Implements ilOrgUnitPositionAndRBACAccessHandler.
Definition at line 211 of file class.ilOrgUnitPositionAccess.php.
References $DIC, checkPositionAccess(), and isPositionActiveForRefId().
Referenced by ilAccess\checkRbacOrPositionPermissionAccess().
|
private |
Definition at line 268 of file class.ilOrgUnitPositionAccess.php.
References $GLOBALS.
Referenced by getCurrentUsersId().
ilOrgUnitPositionAccess::filterUserIdsByPositionOfCurrentUser | ( | $pos_perm, | |
$ref_id, | |||
array | $user_ids | ||
) |
string | $pos_perm | |
int | $ref_id | |
int[] | $user_ids |
Implements ilOrgUnitPositionAccessHandler.
Definition at line 88 of file class.ilOrgUnitPositionAccess.php.
References filterUserIdsByPositionOfUser(), and getCurrentUsersId().
Referenced by ilAccess\filterUserIdsByPositionOfCurrentUser(), and filterUserIdsByRbacOrPositionOfCurrentUser().
ilOrgUnitPositionAccess::filterUserIdsByPositionOfUser | ( | $user_id, | |
$pos_perm, | |||
$ref_id, | |||
array | $user_ids | ||
) |
int | $user_id | |
string | $pos_perm | |
int | $ref_id | |
int[] | $user_ids |
Implements ilOrgUnitPositionAccessHandler.
Definition at line 104 of file class.ilOrgUnitPositionAccess.php.
References $authority, ilOrgUnitOperationQueries\findByOperationString(), getTypeForRefId(), ilOrgUnitAuthority\OVER_EVERYONE, ilOrgUnitAuthority\SCOPE_SAME_ORGU, and ilOrgUnitAuthority\SCOPE_SUBSEQUENT_ORGUS.
Referenced by filterUserIdsByPositionOfCurrentUser(), and ilAccess\filterUserIdsByPositionOfUser().
ilOrgUnitPositionAccess::filterUserIdsByRbacOrPositionOfCurrentUser | ( | $rbac_perm, | |
$pos_perm, | |||
$ref_id, | |||
array | $user_ids | ||
) |
string | $rbac_perm | |
string | $pos_perm | See the list of available permissions in interface ilOrgUnitPositionAccessHandler |
int | $ref_id | Reference-ID of the desired Object in the tree |
int[] | $user_ids |
Implements ilOrgUnitPositionAndRBACAccessHandler.
Definition at line 231 of file class.ilOrgUnitPositionAccess.php.
References $DIC, filterUserIdsByPositionOfCurrentUser(), and isPositionActiveForRefId().
Referenced by ilAccess\filterUserIdsByRbacOrPositionOfCurrentUser().
ilOrgUnitPositionAccess::filterUserIdsForCurrentUsersPositionsAndPermission | ( | array | $user_ids, |
$permission | |||
) |
int[] | $user_ids List of ILIAS-User-IDs which shall be filtered | |
string | $permission |
Implements ilOrgUnitPositionAccessHandler.
Definition at line 38 of file class.ilOrgUnitPositionAccess.php.
References filterUserIdsForUsersPositionsAndPermission(), and getCurrentUsersId().
Referenced by ilAccess\filterUserIdsForCurrentUsersPositionsAndPermission().
ilOrgUnitPositionAccess::filterUserIdsForUsersPositionsAndPermission | ( | array | $user_ids, |
$for_user_id, | |||
$permission | |||
) |
int[] | $user_ids List of ILIAS-User-IDs which shall be filtered | |
int | $for_user_id | |
string | $permission |
Implements ilOrgUnitPositionAccessHandler.
Definition at line 49 of file class.ilOrgUnitPositionAccess.php.
Referenced by filterUserIdsForCurrentUsersPositionsAndPermission(), ilAccess\filterUserIdsForUsersPositionsAndPermission(), and isUserBasedOnPositionsAllowedTo().
|
private |
Definition at line 277 of file class.ilOrgUnitPositionAccess.php.
References dic().
Referenced by checkPositionAccess(), filterUserIdsByPositionOfCurrentUser(), filterUserIdsForCurrentUsersPositionsAndPermission(), hasCurrentUserAnyPositionAccess(), and isCurrentUserBasedOnPositionsAllowedTo().
|
private |
$ref_id |
Definition at line 303 of file class.ilOrgUnitPositionAccess.php.
References ilObject2\_lookupObjectId().
Referenced by isPositionActiveForRefId().
|
private |
$ref_id |
Definition at line 288 of file class.ilOrgUnitPositionAccess.php.
References ilObject2\_lookupType().
Referenced by checkPositionAccess(), and filterUserIdsByPositionOfUser().
ilOrgUnitPositionAccess::hasCurrentUserAnyPositionAccess | ( | $ref_id | ) |
int | $ref_id |
Implements ilOrgUnitPositionAccessHandler.
Definition at line 188 of file class.ilOrgUnitPositionAccess.php.
References getCurrentUsersId(), and isPositionActiveForRefId().
Referenced by ilAccess\hasCurrentUserAnyPositionAccess(), and hasUserRBACorAnyPositionAccess().
ilOrgUnitPositionAccess::hasUserRBACorAnyPositionAccess | ( | $rbac_perm, | |
$ref_id | |||
) |
string | $rbac_perm | |
int | $ref_id |
Implements ilOrgUnitPositionAndRBACAccessHandler.
Definition at line 250 of file class.ilOrgUnitPositionAccess.php.
References $DIC, and hasCurrentUserAnyPositionAccess().
Referenced by ilAccess\hasUserRBACorAnyPositionAccess().
ilOrgUnitPositionAccess::isCurrentUserBasedOnPositionsAllowedTo | ( | $permission, | |
array | $on_user_ids | ||
) |
string | $permission | |
int[] | $on_user_ids List of ILIAS-User-IDs |
Implements ilOrgUnitPositionAccessHandler.
Definition at line 65 of file class.ilOrgUnitPositionAccess.php.
References getCurrentUsersId(), and isUserBasedOnPositionsAllowedTo().
Referenced by ilAccess\isCurrentUserBasedOnPositionsAllowedTo().
|
private |
$ref_id |
Definition at line 314 of file class.ilOrgUnitPositionAccess.php.
References getObjIdForRefId().
Referenced by checkPositionAccess(), checkRbacOrPositionPermissionAccess(), filterUserIdsByRbacOrPositionOfCurrentUser(), and hasCurrentUserAnyPositionAccess().
ilOrgUnitPositionAccess::isUserBasedOnPositionsAllowedTo | ( | $which_user_id, | |
$permission, | |||
array | $on_user_ids | ||
) |
int | $which_user_id | Permission check for this ILIAS-User-ID |
string | $permission | |
int[] | $on_user_ids List of ILIAS-User-IDs |
Implements ilOrgUnitPositionAccessHandler.
Definition at line 76 of file class.ilOrgUnitPositionAccess.php.
References filterUserIdsForUsersPositionsAndPermission().
Referenced by isCurrentUserBasedOnPositionsAllowedTo(), and ilAccess\isUserBasedOnPositionsAllowedTo().
|
staticprotected |
Definition at line 22 of file class.ilOrgUnitPositionAccess.php.
|
protected |
Definition at line 18 of file class.ilOrgUnitPositionAccess.php.
|
protected |
Definition at line 14 of file class.ilOrgUnitPositionAccess.php.