1 <?php declare(strict_types=1);
56 if (null === $cache) {
58 (!$this->dic->user()->isAnonymous() && $this->dic->user()->getId() > 0) &&
59 $this->origin->hasCurrentUserAccessToMyStaff()
70 if (null === $cache) {
71 $cache = $this->origin->hasCurrentUserAccessToCertificates();
81 if (null === $cache) {
82 $cache = $this->origin->hasCurrentUserAccessToTalks();
92 if (null === $cache) {
93 $cache = $this->origin->hasCurrentUserAccessToCompetences();
101 static $cache = null;
103 if (null === $cache) {
104 $cache = $this->origin->hasCurrentUserAccessToCourseMemberships();
114 if (null === $cache) {
115 $cache = $this->origin->hasCurrentUserAccessToStaffList();
125 if (!isset($cache[$usr_id])) {
126 $cache[$usr_id] = $this->origin->hasCurrentUserAccessToUser($usr_id);
129 return $cache[$usr_id];
137 $cache[
$ref_id] = $this->origin->hasCurrentUserAccessToLearningProgressInObject($ref_id);
145 static $cache = null;
147 if (null === $cache) {
148 $cache = $this->origin->hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser();
161 $cache_key = implode(
'#', [$position_id, $operation_id, $context_id]);
163 if (!isset($cache[$cache_key])) {
164 $cache[$cache_key] = $this->origin->hasPositionDefaultPermissionForOperationInContext(
171 return $cache[$cache_key];
176 return $this->origin->countOrgusOfUserWithAtLeastOneOperation($user_id);
181 string $org_unit_operation_string,
184 return $this->origin->countOrgusOfUserWithOperationAndContext(
186 $org_unit_operation_string,
194 string $org_unit_operation_string,
196 string $tmp_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX
198 return $this->origin->getUsersForUserOperationAndContext(
200 $org_unit_operation_string,
202 $tmp_table_name_prefix
209 return $this->origin->getUsersForUserPerPosition($user_id);
215 return $this->origin->getUsersForUser($user_id, $position_id);
221 return $this->origin->getIdsForUserAndOperation(
231 return $this->origin->getIdsForPositionAndOperation(
245 return $this->origin->getIdsForPositionAndOperationAndContext(
256 string $org_unit_operation_string,
259 return $this->origin->getIlobjectsAndUsersForUserOperationAndContext(
261 $org_unit_operation_string,
269 string $org_unit_operation_string,
271 string $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX
273 return $this->origin->buildTempTableIlobjectsUserMatrixForUserOperationAndContext(
275 $org_unit_operation_string,
277 $temporary_table_name_prefix
283 string $org_unit_operation_string,
285 string $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_SPEC_PERMISSIONS
287 return $this->origin->buildTempTableIlobjectsSpecificPermissionSetForOperationAndContext(
288 $org_unit_operation_string,
290 $temporary_table_name_prefix
296 string $org_unit_operation_string,
298 string $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_DEFAULT_PERMISSIONS
300 return $this->origin->buildTempTableIlobjectsDefaultPermissionSetForOperationAndContext(
301 $org_unit_operation_string,
303 $temporary_table_name_prefix
309 string $org_unit_operation_string,
311 string $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_ORGU_DEFAULT_PERMISSIONS
313 return $this->origin->buildTempTableIlorgunitDefaultPermissionSetForOperationAndContext(
314 $org_unit_operation_string,
316 $temporary_table_name_prefix
322 string $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS,
323 array $only_courses_of_user_ids = []
325 return $this->origin->buildTempTableCourseMemberships(
326 $temporary_table_name_prefix,
327 $only_courses_of_user_ids
333 string $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS,
334 array $only_orgus_of_user_ids = []
336 return $this->origin->buildTempTableOrguMemberships(
337 $temporary_table_name_prefix,
338 $only_orgus_of_user_ids
345 $this->origin->dropTempTable($temporary_table_name);
dropTempTable(string $temporary_table_name)
hasCurrentUserAccessToUser(int $usr_id=0)
hasCurrentUserAccessToStaffList()
hasCurrentUserAccessToTalks()
buildTempTableCourseMemberships(string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS, array $only_courses_of_user_ids=[])
getIdsForPositionAndOperation(int $position_id, string $operation, bool $return_ref_id)
buildTempTableIlobjectsDefaultPermissionSetForOperationAndContext(string $org_unit_operation_string, string $context, string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_DEFAULT_PERMISSIONS)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
hasCurrentUserAccessToMyStaff()
hasCurrentUserAccessToCourseMemberships()
getIdsForPositionAndOperationAndContext(int $position_id, string $operation, string $context, bool $return_ref_id)
hasCurrentUserAccessToLearningProgressInObject(int $ref_id=0)
hasPositionDefaultPermissionForOperationInContext(int $position_id, int $operation_id, int $context_id)
getUsersForUser(int $user_id, ?int $position_id=null)
getIdsForUserAndOperation(int $user_id, string $operation, bool $return_ref_id=false)
Customizing of pimple-DIC for ILIAS.
countOrgusOfUserWithAtLeastOneOperation(int $user_id)
hasCurrentUserAccessToCompetences()
buildTempTableIlorgunitDefaultPermissionSetForOperationAndContext(string $org_unit_operation_string, string $context, string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_ORGU_DEFAULT_PERMISSIONS)
buildTempTableIlobjectsSpecificPermissionSetForOperationAndContext(string $org_unit_operation_string, string $context, string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_SPEC_PERMISSIONS)
hasCurrentUserAccessToCertificates()
buildTempTableIlobjectsUserMatrixForUserOperationAndContext(int $user_id, string $org_unit_operation_string, string $context, string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX)
getUsersForUserOperationAndContext(int $user_id, string $org_unit_operation_string, string $context, string $tmp_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX)
__construct(Container $dic, ilMyStaffAccess $origin)
countOrgusOfUserWithOperationAndContext(int $user_id, string $org_unit_operation_string, string $context)
hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser()
buildTempTableOrguMemberships(string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS, array $only_orgus_of_user_ids=[])
getUsersForUserPerPosition(int $user_id)
getIlobjectsAndUsersForUserOperationAndContext(int $user_id, string $org_unit_operation_string, string $context)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...