ILIAS  trunk Revision v12.0_alpha-1541-g23eaa5e013d
ILIAS\MyStaff\ilMyStaffCachedAccessDecorator Class Reference
+ Inheritance diagram for ILIAS\MyStaff\ilMyStaffCachedAccessDecorator:
+ Collaboration diagram for ILIAS\MyStaff\ilMyStaffCachedAccessDecorator:

Public Member Functions

 __construct (Container $dic, ilMyStaffAccess $origin)
 
 hasCurrentUserAccessToMyStaff ()
 
 hasCurrentUserAccessToCertificates ()
 
 hasCurrentUserAccessToTalks ()
 
 hasCurrentUserAccessToCompetences ()
 
 hasCurrentUserAccessToCourseMemberships ()
 
 hasCurrentUserAccessToStaffList ()
 
 hasCurrentUserAccessToUser (int $usr_id=0)
 
 hasCurrentUserAccessToLearningProgressInObject (int $ref_id=0)
 
 hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser ()
 
 hasPositionDefaultPermissionForOperationInContext (int $position_id, int $operation_id, int $context_id)
 
 countOrgusOfUserWithAtLeastOneOperation (int $user_id)
 
 countOrgusOfUserWithOperationAndContext (int $user_id, string $org_unit_operation_string, string $context)
 
 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)
 
 getUsersForUserPerPosition (int $user_id)
 
 getUsersForUser (int $user_id, ?int $position_id=null)
 
 getIdsForUserAndOperation (int $user_id, string $operation, bool $return_ref_id=false)
 
 getIdsForPositionAndOperation (int $position_id, string $operation, bool $return_ref_id)
 
 getIdsForPositionAndOperationAndContext (int $position_id, string $operation, string $context, bool $return_ref_id)
 
 getIlobjectsAndUsersForUserOperationAndContext (int $user_id, string $org_unit_operation_string, string $context)
 
 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)
 
 buildTempTableIlobjectsSpecificPermissionSetForOperationAndContext (string $org_unit_operation_string, string $context, string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_SPEC_PERMISSIONS)
 
 buildTempTableIlobjectsDefaultPermissionSetForOperationAndContext (string $org_unit_operation_string, string $context, string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_DEFAULT_PERMISSIONS)
 
 buildTempTableIlorgunitDefaultPermissionSetForOperationAndContext (string $org_unit_operation_string, string $context, string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_ORGU_DEFAULT_PERMISSIONS)
 
 buildTempTableCourseMemberships (string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS, array $only_courses_of_user_ids=[])
 
 buildTempTableOrguMemberships (string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS, array $only_orgus_of_user_ids=[])
 
 dropTempTable (string $temporary_table_name)
 
- Public Member Functions inherited from ILIAS\MyStaff\ilMyStaffAccess
 __construct ()
 
 hasCurrentUserAccessToMyStaff ()
 
 hasCurrentUserAccessToCertificates ()
 
 hasCurrentUserAccessToTalks ()
 
 hasCurrentUserAccessToCompetences ()
 
 hasCurrentUserAccessToCourseMemberships ()
 
 hasCurrentUserAccessToStaffList ()
 
 hasCurrentUserAccessToUser (int $usr_id)
 
 hasCurrentUserAccessToLearningProgressInObject (int $ref_id=0)
 
 hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser ()
 
 countOrgusOfUserWithAtLeastOneOperation (int $user_id)
 
 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)
 
 getUsersForUserPerPosition (int $user_id)
 
 getUsersForUser (int $user_id, ?int $position_id=null)
 
 getIdsForUserAndOperation (int $user_id, string $operation, bool $return_ref_id=false)
 
 getIdsForPositionAndOperation (int $position_id, string $operation, bool $return_ref_id)
 
 hasPositionDefaultPermissionForOperationInContext (int $position_id, int $operation_id, int $context_id)
 
 getIlobjectsAndUsersForUserOperationAndContext (int $user_id, string $org_unit_operation_string, string $context)
 
 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)
 
 buildTempTableIlobjectsSpecificPermissionSetForOperationAndContext (string $org_unit_operation_string, string $context, string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_SPEC_PERMISSIONS)
 
 buildTempTableCourseMemberships (string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS, array $only_courses_of_user_ids=array())
 
 buildTempTableOrguMemberships (string $temporary_table_name_prefix=self::TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS, array $only_orgus_of_user_ids=array())
 
 dropTempTable (string $temporary_table_name)
 
- Public Member Functions inherited from ilObjectAccess
 _checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
 Checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More...
 
 canBeDelivered (ilWACPath $ilWACPath)
 
 canBeDelivered (ilWACPath $ilWACPath)
 

Private Attributes

Container $dic
 
ilMyStaffAccess $origin
 

Additional Inherited Members

- Static Public Member Functions inherited from ILIAS\MyStaff\ilMyStaffAccess
static getInstance ()
 
static isMyStaffActive ()
 
- Static Public Member Functions inherited from ilObjectAccess
static _getCommands ()
 get commands More...
 
static _checkGoto (string $target)
 check whether goto script will succeed More...
 
static _isOffline (int $obj_id)
 Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More...
 
static _preloadData (array $obj_ids, array $ref_ids)
 Preload data. More...
 
- Data Fields inherited from ILIAS\MyStaff\ilMyStaffAccess
const string TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_SPEC_PERMISSIONS = 'tmp_obj_spec_perm'
 
const string TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_DEFAULT_PERMISSIONS = 'tmp_obj_def_perm'
 
const string TMP_DEFAULT_TABLE_NAME_PREFIX_IL_ORGU_DEFAULT_PERMISSIONS = 'tmp_orgu_def_perm'
 
const string TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS = 'tmp_crs_members'
 
const string TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS = 'tmp_orgu_members'
 
const string TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_USER_MATRIX = 'tmp_obj_user_matr'
 
const string ACCESS_ENROLMENTS_ORG_UNIT_OPERATION = ilOrgUnitOperation::OP_ACCESS_ENROLMENTS
 
const string COURSE_CONTEXT = ilOrgUnitOperationContext::CONTEXT_CRS
 
const string EXERCISE_CONTEXT = ilOrgUnitOperationContext::CONTEXT_EXC
 
const string GROUP_CONTEXT = ilOrgUnitOperationContext::CONTEXT_GRP
 
const string SURVEY_CONTEXT = ilOrgUnitOperationContext::CONTEXT_SVY
 
const string TEST_CONTEXT = ilOrgUnitOperationContext::CONTEXT_TST
 
const string EMPLOYEE_TALK_CONTEXT = ilOrgUnitOperationContext::CONTEXT_ETAL
 
- Protected Attributes inherited from ILIAS\MyStaff\ilMyStaffAccess
array $users_for_user = []
 
- Static Protected Attributes inherited from ILIAS\MyStaff\ilMyStaffAccess
static self $instance = null
 

Detailed Description

Definition at line 26 of file class.ilMyStaffCachedAccessDecorator.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::__construct ( Container  $dic,
ilMyStaffAccess  $origin 
)

Member Function Documentation

◆ buildTempTableCourseMemberships()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::buildTempTableCourseMemberships ( string  $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_CRS_MEMBERS,
array  $only_courses_of_user_ids = [] 
)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 307 of file class.ilMyStaffCachedAccessDecorator.php.

310 : string {
311 return $this->origin->buildTempTableCourseMemberships(
312 $temporary_table_name_prefix,
313 $only_courses_of_user_ids
314 );
315 }

◆ buildTempTableIlobjectsDefaultPermissionSetForOperationAndContext()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::buildTempTableIlobjectsDefaultPermissionSetForOperationAndContext ( string  $org_unit_operation_string,
string  $context,
string  $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_DEFAULT_PERMISSIONS 
)

Definition at line 281 of file class.ilMyStaffCachedAccessDecorator.php.

285 : string {
286 return $this->origin->buildTempTableIlobjectsDefaultPermissionSetForOperationAndContext(
287 $org_unit_operation_string,
288 $context,
289 $temporary_table_name_prefix
290 );
291 }

◆ buildTempTableIlobjectsSpecificPermissionSetForOperationAndContext()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::buildTempTableIlobjectsSpecificPermissionSetForOperationAndContext ( string  $org_unit_operation_string,
string  $context,
string  $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_OBJ_SPEC_PERMISSIONS 
)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 268 of file class.ilMyStaffCachedAccessDecorator.php.

272 : string {
273 return $this->origin->buildTempTableIlobjectsSpecificPermissionSetForOperationAndContext(
274 $org_unit_operation_string,
275 $context,
276 $temporary_table_name_prefix
277 );
278 }

◆ buildTempTableIlobjectsUserMatrixForUserOperationAndContext()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::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 
)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 253 of file class.ilMyStaffCachedAccessDecorator.php.

258 : string {
259 return $this->origin->buildTempTableIlobjectsUserMatrixForUserOperationAndContext(
260 $user_id,
261 $org_unit_operation_string,
262 $context,
263 $temporary_table_name_prefix
264 );
265 }

◆ buildTempTableIlorgunitDefaultPermissionSetForOperationAndContext()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::buildTempTableIlorgunitDefaultPermissionSetForOperationAndContext ( string  $org_unit_operation_string,
string  $context,
string  $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_IL_ORGU_DEFAULT_PERMISSIONS 
)

Definition at line 294 of file class.ilMyStaffCachedAccessDecorator.php.

298 : string {
299 return $this->origin->buildTempTableIlorgunitDefaultPermissionSetForOperationAndContext(
300 $org_unit_operation_string,
301 $context,
302 $temporary_table_name_prefix
303 );
304 }

◆ buildTempTableOrguMemberships()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::buildTempTableOrguMemberships ( string  $temporary_table_name_prefix = self::TMP_DEFAULT_TABLE_NAME_PREFIX_ORGU_MEMBERS,
array  $only_orgus_of_user_ids = [] 
)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 318 of file class.ilMyStaffCachedAccessDecorator.php.

321 : string {
322 return $this->origin->buildTempTableOrguMemberships(
323 $temporary_table_name_prefix,
324 $only_orgus_of_user_ids
325 );
326 }

◆ countOrgusOfUserWithAtLeastOneOperation()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::countOrgusOfUserWithAtLeastOneOperation ( int  $user_id)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 160 of file class.ilMyStaffCachedAccessDecorator.php.

160 : int
161 {
162 return $this->origin->countOrgusOfUserWithAtLeastOneOperation($user_id);
163 }

References $user_id.

◆ countOrgusOfUserWithOperationAndContext()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::countOrgusOfUserWithOperationAndContext ( int  $user_id,
string  $org_unit_operation_string,
string  $context 
)

Definition at line 165 of file class.ilMyStaffCachedAccessDecorator.php.

169 : int {
170 return $this->origin->countOrgusOfUserWithOperationAndContext(
171 $user_id,
172 $org_unit_operation_string,
173 $context
174 );
175 }

◆ dropTempTable()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::dropTempTable ( string  $temporary_table_name)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 329 of file class.ilMyStaffCachedAccessDecorator.php.

329 : void
330 {
331 $this->origin->dropTempTable($temporary_table_name);
332 }

◆ getIdsForPositionAndOperation()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::getIdsForPositionAndOperation ( int  $position_id,
string  $operation,
bool  $return_ref_id 
)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 215 of file class.ilMyStaffCachedAccessDecorator.php.

215 : array
216 {
217 return $this->origin->getIdsForPositionAndOperation(
218 $position_id,
219 $operation,
220 $return_ref_id
221 );
222 }

◆ getIdsForPositionAndOperationAndContext()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::getIdsForPositionAndOperationAndContext ( int  $position_id,
string  $operation,
string  $context,
bool  $return_ref_id 
)

Definition at line 225 of file class.ilMyStaffCachedAccessDecorator.php.

230 : array {
231 return $this->origin->getIdsForPositionAndOperationAndContext(
232 $position_id,
233 $operation,
234 $context,
235 $return_ref_id
236 );
237 }

◆ getIdsForUserAndOperation()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::getIdsForUserAndOperation ( int  $user_id,
string  $operation,
bool  $return_ref_id = false 
)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 205 of file class.ilMyStaffCachedAccessDecorator.php.

205 : array
206 {
207 return $this->origin->getIdsForUserAndOperation(
208 $user_id,
209 $operation,
210 $return_ref_id
211 );
212 }

References $user_id.

◆ getIlobjectsAndUsersForUserOperationAndContext()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::getIlobjectsAndUsersForUserOperationAndContext ( int  $user_id,
string  $org_unit_operation_string,
string  $context 
)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 240 of file class.ilMyStaffCachedAccessDecorator.php.

244 : array {
245 return $this->origin->getIlobjectsAndUsersForUserOperationAndContext(
246 $user_id,
247 $org_unit_operation_string,
248 $context
249 );
250 }

◆ getUsersForUser()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::getUsersForUser ( int  $user_id,
?int  $position_id = null 
)
Returns
int[]

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 199 of file class.ilMyStaffCachedAccessDecorator.php.

199 : array
200 {
201 return $this->origin->getUsersForUser($user_id, $position_id);
202 }

References $user_id.

◆ getUsersForUserOperationAndContext()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::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 
)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 178 of file class.ilMyStaffCachedAccessDecorator.php.

183 : array {
184 return $this->origin->getUsersForUserOperationAndContext(
185 $user_id,
186 $org_unit_operation_string,
187 $context,
188 $tmp_table_name_prefix
189 );
190 }

◆ getUsersForUserPerPosition()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::getUsersForUserPerPosition ( int  $user_id)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 193 of file class.ilMyStaffCachedAccessDecorator.php.

193 : array
194 {
195 return $this->origin->getUsersForUserPerPosition($user_id);
196 }

References $user_id.

◆ hasCurrentUserAccessToCertificates()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToCertificates ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 52 of file class.ilMyStaffCachedAccessDecorator.php.

52 : bool
53 {
54 static $cache = null;
55
56 if (null === $cache) {
57 $cache = $this->origin->hasCurrentUserAccessToCertificates();
58 }
59
60 return $cache;
61 }

◆ hasCurrentUserAccessToCompetences()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToCompetences ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 74 of file class.ilMyStaffCachedAccessDecorator.php.

74 : bool
75 {
76 static $cache = null;
77
78 if (null === $cache) {
79 $cache = $this->origin->hasCurrentUserAccessToCompetences();
80 }
81
82 return $cache;
83 }

◆ hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 129 of file class.ilMyStaffCachedAccessDecorator.php.

129 : bool
130 {
131 static $cache = null;
132
133 if (null === $cache) {
134 $cache = $this->origin->hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser();
135 }
136
137 return $cache;
138 }

◆ hasCurrentUserAccessToCourseMemberships()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToCourseMemberships ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 85 of file class.ilMyStaffCachedAccessDecorator.php.

85 : bool
86 {
87 static $cache = null;
88
89 if (null === $cache) {
90 $cache = $this->origin->hasCurrentUserAccessToCourseMemberships();
91 }
92
93 return $cache;
94 }

◆ hasCurrentUserAccessToLearningProgressInObject()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToLearningProgressInObject ( int  $ref_id = 0)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 118 of file class.ilMyStaffCachedAccessDecorator.php.

118 : bool
119 {
120 static $cache = [];
121
122 if (!isset($cache[$ref_id])) {
123 $cache[$ref_id] = $this->origin->hasCurrentUserAccessToLearningProgressInObject($ref_id);
124 }
125
126 return $cache[$ref_id];
127 }
$ref_id
Definition: ltiauth.php:66

References $ref_id.

◆ hasCurrentUserAccessToMyStaff()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToMyStaff ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 38 of file class.ilMyStaffCachedAccessDecorator.php.

38 : bool
39 {
40 static $cache = null;
41
42 if (null === $cache) {
43 $cache = (
44 (!$this->dic->user()->isAnonymous() && $this->dic->user()->getId() > 0) &&
45 $this->origin->hasCurrentUserAccessToMyStaff()
46 );
47 }
48
49 return $cache;
50 }

◆ hasCurrentUserAccessToStaffList()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToStaffList ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 96 of file class.ilMyStaffCachedAccessDecorator.php.

96 : bool
97 {
98 static $cache = [];
99
100 if (null === $cache) {
101 $cache = $this->origin->hasCurrentUserAccessToStaffList();
102 }
103
104 return $cache;
105 }

◆ hasCurrentUserAccessToTalks()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToTalks ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 63 of file class.ilMyStaffCachedAccessDecorator.php.

63 : bool
64 {
65 static $cache = null;
66
67 if (null === $cache) {
68 $cache = $this->origin->hasCurrentUserAccessToTalks();
69 }
70
71 return $cache;
72 }

◆ hasCurrentUserAccessToUser()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToUser ( int  $usr_id = 0)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 107 of file class.ilMyStaffCachedAccessDecorator.php.

107 : bool
108 {
109 static $cache = [];
110
111 if (!isset($cache[$usr_id])) {
112 $cache[$usr_id] = $this->origin->hasCurrentUserAccessToUser($usr_id);
113 }
114
115 return $cache[$usr_id];
116 }

◆ hasPositionDefaultPermissionForOperationInContext()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasPositionDefaultPermissionForOperationInContext ( int  $position_id,
int  $operation_id,
int  $context_id 
)

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

Definition at line 140 of file class.ilMyStaffCachedAccessDecorator.php.

144 : bool {
145 static $cache = [];
146
147 $cache_key = implode('#', [$position_id, $operation_id, $context_id]);
148
149 if (!isset($cache[$cache_key])) {
150 $cache[$cache_key] = $this->origin->hasPositionDefaultPermissionForOperationInContext(
151 $position_id,
152 $operation_id,
153 $context_id
154 );
155 }
156
157 return $cache[$cache_key];
158 }

Field Documentation

◆ $dic

Container ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::$dic
private

◆ $origin

ilMyStaffAccess ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::$origin
private

The documentation for this class was generated from the following file: