ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 25 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 306 of file class.ilMyStaffCachedAccessDecorator.php.

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

◆ 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 280 of file class.ilMyStaffCachedAccessDecorator.php.

284 : string {
285 return $this->origin->buildTempTableIlobjectsDefaultPermissionSetForOperationAndContext(
286 $org_unit_operation_string,
287 $context,
288 $temporary_table_name_prefix
289 );
290 }
$context
Definition: webdav.php:31

◆ 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 267 of file class.ilMyStaffCachedAccessDecorator.php.

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

◆ 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 252 of file class.ilMyStaffCachedAccessDecorator.php.

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

◆ 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 293 of file class.ilMyStaffCachedAccessDecorator.php.

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

◆ 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 317 of file class.ilMyStaffCachedAccessDecorator.php.

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

◆ countOrgusOfUserWithAtLeastOneOperation()

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

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

References $user_id.

◆ countOrgusOfUserWithOperationAndContext()

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

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

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

◆ dropTempTable()

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

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

◆ getIdsForPositionAndOperation()

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

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

◆ getIdsForPositionAndOperationAndContext()

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

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

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

◆ getIdsForUserAndOperation()

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

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

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 239 of file class.ilMyStaffCachedAccessDecorator.php.

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

◆ getUsersForUser()

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

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

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 177 of file class.ilMyStaffCachedAccessDecorator.php.

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

◆ getUsersForUserPerPosition()

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

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

References $user_id.

◆ hasCurrentUserAccessToCertificates()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToCertificates ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

◆ hasCurrentUserAccessToCompetences()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToCompetences ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

◆ hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToCourseLearningProgressForAtLeastOneUser ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

◆ hasCurrentUserAccessToCourseMemberships()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToCourseMemberships ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

◆ hasCurrentUserAccessToLearningProgressInObject()

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

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

References $ref_id.

◆ hasCurrentUserAccessToMyStaff()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToMyStaff ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

◆ hasCurrentUserAccessToStaffList()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToStaffList ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

◆ hasCurrentUserAccessToTalks()

ILIAS\MyStaff\ilMyStaffCachedAccessDecorator::hasCurrentUserAccessToTalks ( )

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

◆ hasCurrentUserAccessToUser()

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

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

◆ hasPositionDefaultPermissionForOperationInContext()

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

Reimplemented from ILIAS\MyStaff\ilMyStaffAccess.

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

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

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: