ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilLPStatusWrapper Class Reference

Class ilLPStatusWrapper This class is wrapper for all ilLPStatus classes. More...

+ Collaboration diagram for ilLPStatusWrapper:

Static Public Member Functions

static _getCountNotAttempted ($a_obj_id)
 Static function to read the number of user who have the status 'not_attempted'. More...
 
static _getNotAttempted ($a_obj_id)
 Static function to read the number of user who have the status 'not_attempted'. More...
 
static _getCountInProgress ($a_obj_id)
 Static function to read the number of user who have the status 'in_progress'. More...
 
static _getInProgress ($a_obj_id)
 Static function to read users who have the status 'in_progress'. More...
 
static _getCountCompleted ($a_obj_id)
 Static function to read the number of user who have the status 'completed'. More...
 
static _getCompleted ($a_obj_id)
 Static function to read the users who have the status 'completed'. More...
 
static _getCountFailed ($a_obj_id)
 Static function to read the number of user who have the status 'failed'. More...
 
static _getFailed ($a_obj_id)
 Static function to read the users who have the status 'completed'. More...
 
static _getStatusInfo ($a_obj_id)
 Reads informations about the object e.g test results, tlt, number of visits. More...
 
static _resetInfoCaches ($a_obj_id)
 
static _getTypicalLearningTime ($a_obj_id)
 Reads Typical learning time. More...
 
static _getCountNotAttemptedByType ($a_obj_id, $a_type)
 Static function to read the number of user who have the status 'not_attempted'. More...
 
static _getNotAttemptedByType ($a_obj_id, $a_type)
 
static _getCountInProgressByType ($a_obj_id, $a_type)
 
static _getInProgressByType ($a_obj_id, $a_type)
 
static _getCountCompletedByType ($a_obj_id, $a_type)
 
static _getCompletedByType ($a_obj_id, $a_type)
 
static _getCountFailedByType ($a_obj_id, $a_type)
 
static _getFailedByType ($a_obj_id, $a_type)
 
static _getStatusInfoByType ($a_obj_id, $a_type)
 
static _updateStatus ($a_obj_id, $a_usr_id, $a_obj=null, $a_percentage=false, $a_force_raise=false)
 Update status. More...
 
static _setDirty ($a_obj_id)
 Set dirty. More...
 
static _refreshStatus ($a_obj_id, $a_users=null)
 Set dirty. More...
 
static _determineStatus ($a_obj_id, $a_usr_id)
 Determine status. More...
 
static _removeStatusCache ($a_obj_id, $a_usr_id)
 
static _lookupCompletedForObject ($a_obj_id, $a_user_ids=null)
 Get completed users for object. More...
 
static _lookupFailedForObject ($a_obj_id, $a_user_ids=null)
 Get failed users for object. More...
 
static _lookupInProgressForObject ($a_obj_id, $a_user_ids=null)
 Get in progress users for object. More...
 

Static Private Attributes

static $status_cache = array()
 
static $info_cache = array()
 
static $failed_cache = array()
 
static $completed_cache = array()
 
static $in_progress_cache = array()
 
static $not_attempted_cache = array()
 

Detailed Description

Class ilLPStatusWrapper This class is wrapper for all ilLPStatus classes.

It caches all function calls using the obj_id as key TODO: substitute all ilStatus calls with this functions

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 18 of file class.ilLPStatusWrapper.php.

Member Function Documentation

◆ _determineStatus()

static ilLPStatusWrapper::_determineStatus (   $a_obj_id,
  $a_usr_id 
)
static

Determine status.

Parameters

return

Definition at line 302 of file class.ilLPStatusWrapper.php.

303 {
304 if (isset(self::$status_cache[$a_obj_id][$a_usr_id])) {
305 return self::$status_cache[$a_obj_id][$a_usr_id];
306 }
307
308 $trac_obj = ilLPStatusFactory::_getInstance($a_obj_id);
309 $st = $trac_obj->determineStatus($a_obj_id, $a_usr_id);
310
311 self::$status_cache[$a_obj_id][$a_usr_id] = $st;
312
313 return $st;
314 }
static _getInstance($a_obj_id, $a_mode=null)

References ilLPStatusFactory\_getInstance().

Referenced by ilLPStatusCollection\determineGroupingStatus(), ilStudyProgrammeLPTest\testInitialLPActive(), ilStudyProgrammeLPTest\testInitialLPDraft(), ilStudyProgrammeLPTest\testInitialProgressOutdated(), ilStudyProgrammeLPTest\testMarkAccredited(), ilStudyProgrammeLPTest\testMarkFailed(), ilStudyProgrammeLPTest\testMarkNotFailed(), ilStudyProgrammeLPTest\testMarkNotRelevant(), ilStudyProgrammeLPTest\testNewNodesAreNotRelevant(), and ilStudyProgrammeLPTest\testUnmarkAccredited().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getCompleted()

static ilLPStatusWrapper::_getCompleted (   $a_obj_id)
static

Static function to read the users who have the status 'completed'.

Definition at line 86 of file class.ilLPStatusWrapper.php.

87 {
88 if (isset(self::$completed_cache[$a_obj_id])) {
89 return self::$completed_cache[$a_obj_id];
90 }
91 $class = ilLPStatusFactory::_getClassById($a_obj_id);
92 self::$completed_cache[$a_obj_id] = $class::_getCompleted($a_obj_id);
93
94 return self::$completed_cache[$a_obj_id];
95 }
static _getClassById($a_obj_id, $a_mode=null)

References ilLPStatusFactory\_getClassById().

Referenced by ilLPStatusCollection\_getCompleted(), _getCountCompleted(), ilLPStatusCollection\_getInProgress(), ilLPStatusCollectionManual\_getInProgress(), ilLPStatusCollectionTLT\_getInProgress(), ilLPStatusExerciseReturned\_getInProgress(), ilLPStatusManual\_getInProgress(), ilLPStatusManualByTutor\_getInProgress(), ilLPStatusQuestions\_getInProgress(), ilLPStatusSCORM\_getInProgress(), ilLPStatusVisitedPages\_getInProgress(), ilLPStatusCollection\_getNotAttempted(), ilLPStatusEvent\_getNotAttempted(), ilLPStatusExerciseReturned\_getNotAttempted(), ilLPStatusManualByTutor\_getNotAttempted(), ilLPStatusObjectives\_getNotAttempted(), ilLPStatusSCORM\_getNotAttempted(), ilSoapLearningProgressAdministration\applyProgressFilter(), ilLPStatus\refreshStatus(), ilLPStatusSCORM\refreshStatus(), and ilLPStatusSCORMPackage\refreshStatus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getCompletedByType()

static ilLPStatusWrapper::_getCompletedByType (   $a_obj_id,
  $a_type 
)
static

Definition at line 212 of file class.ilLPStatusWrapper.php.

213 {
214 static $cache = array();
215
216 if (isset($cache[$a_obj_id . '_' . $a_type])) {
217 return $cache[$a_obj_id . '_' . $a_type];
218 }
219
221 $cache[$a_obj_id . '_' . $a_type] = $class::_getCompleted($a_obj_id);
222
223 return $cache[$a_obj_id . '_' . $a_type];
224 }
static _getClassByIdAndType($a_obj_id, $a_type)
$a_type
Definition: workflow.php:92

References $a_type, and ilLPStatusFactory\_getClassByIdAndType().

Referenced by _getCountCompletedByType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getCountCompleted()

static ilLPStatusWrapper::_getCountCompleted (   $a_obj_id)
static

Static function to read the number of user who have the status 'completed'.

Definition at line 78 of file class.ilLPStatusWrapper.php.

79 {
80 return count(ilLPStatusWrapper::_getCompleted($a_obj_id));
81 }
static _getCompleted($a_obj_id)
Static function to read the users who have the status 'completed'.

References _getCompleted().

+ Here is the call graph for this function:

◆ _getCountCompletedByType()

static ilLPStatusWrapper::_getCountCompletedByType (   $a_obj_id,
  $a_type 
)
static

Definition at line 207 of file class.ilLPStatusWrapper.php.

208 {
209 return count(ilLPStatusWrapper::_getCompletedByType($a_obj_id, $a_type));
210 }
static _getCompletedByType($a_obj_id, $a_type)

References $a_type, and _getCompletedByType().

+ Here is the call graph for this function:

◆ _getCountFailed()

static ilLPStatusWrapper::_getCountFailed (   $a_obj_id)
static

Static function to read the number of user who have the status 'failed'.

Definition at line 100 of file class.ilLPStatusWrapper.php.

101 {
102 return count(ilLPStatusWrapper::_getFailed($a_obj_id));
103 }
static _getFailed($a_obj_id)
Static function to read the users who have the status 'completed'.

References _getFailed().

+ Here is the call graph for this function:

◆ _getCountFailedByType()

static ilLPStatusWrapper::_getCountFailedByType (   $a_obj_id,
  $a_type 
)
static

Definition at line 226 of file class.ilLPStatusWrapper.php.

227 {
228 return count(ilLPStatusWrapper::_getFailedByType($a_obj_id, $a_type));
229 }
static _getFailedByType($a_obj_id, $a_type)

References $a_type, and _getFailedByType().

+ Here is the call graph for this function:

◆ _getCountInProgress()

static ilLPStatusWrapper::_getCountInProgress (   $a_obj_id)
static

Static function to read the number of user who have the status 'in_progress'.

Definition at line 53 of file class.ilLPStatusWrapper.php.

54 {
55 return count(ilLPStatusWrapper::_getInProgress($a_obj_id));
56 }
static _getInProgress($a_obj_id)
Static function to read users who have the status 'in_progress'.

References _getInProgress().

+ Here is the call graph for this function:

◆ _getCountInProgressByType()

static ilLPStatusWrapper::_getCountInProgressByType (   $a_obj_id,
  $a_type 
)
static

Definition at line 188 of file class.ilLPStatusWrapper.php.

189 {
190 return count(ilLPStatusWrapper::_getInProgressByType($a_obj_id, $a_type));
191 }
static _getInProgressByType($a_obj_id, $a_type)

References $a_type, and _getInProgressByType().

+ Here is the call graph for this function:

◆ _getCountNotAttempted()

static ilLPStatusWrapper::_getCountNotAttempted (   $a_obj_id)
static

Static function to read the number of user who have the status 'not_attempted'.

Definition at line 30 of file class.ilLPStatusWrapper.php.

31 {
32 return count(ilLPStatusWrapper::_getNotAttempted($a_obj_id));
33 }
static _getNotAttempted($a_obj_id)
Static function to read the number of user who have the status 'not_attempted'.

References _getNotAttempted().

+ Here is the call graph for this function:

◆ _getCountNotAttemptedByType()

static ilLPStatusWrapper::_getCountNotAttemptedByType (   $a_obj_id,
  $a_type 
)
static

Static function to read the number of user who have the status 'not_attempted'.

Definition at line 169 of file class.ilLPStatusWrapper.php.

170 {
171 return count(ilLPStatusWrapper::_getNotAttemptedByType($a_obj_id, $a_type));
172 }
static _getNotAttemptedByType($a_obj_id, $a_type)

References $a_type, and _getNotAttemptedByType().

+ Here is the call graph for this function:

◆ _getFailed()

static ilLPStatusWrapper::_getFailed (   $a_obj_id)
static

Static function to read the users who have the status 'completed'.

Definition at line 108 of file class.ilLPStatusWrapper.php.

109 {
110 if (isset(self::$failed_cache[$a_obj_id])) {
111 return self::$failed_cache[$a_obj_id];
112 }
113
114 $class = ilLPStatusFactory::_getClassById($a_obj_id);
115
116 self::$failed_cache[$a_obj_id] = $class::_getFailed($a_obj_id);
117
118 return self::$failed_cache[$a_obj_id];
119 }

References ilLPStatusFactory\_getClassById().

Referenced by ilLPStatusCollection\_getCompleted(), ilLPStatusSCORM\_getCompleted(), _getCountFailed(), ilLPStatusCollection\_getFailed(), ilLPStatusCollection\_getInProgress(), ilLPStatusExerciseReturned\_getInProgress(), ilLPStatusSCORM\_getInProgress(), ilLPStatusCollection\_getNotAttempted(), ilLPStatusExerciseReturned\_getNotAttempted(), ilLPStatusObjectives\_getNotAttempted(), ilLPStatusSCORM\_getNotAttempted(), ilSoapLearningProgressAdministration\applyProgressFilter(), ilLPStatus\refreshStatus(), ilLPStatusSCORM\refreshStatus(), and ilLPStatusSCORMPackage\refreshStatus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getFailedByType()

static ilLPStatusWrapper::_getFailedByType (   $a_obj_id,
  $a_type 
)
static

Definition at line 231 of file class.ilLPStatusWrapper.php.

232 {
233 static $cache = array();
234
235 if (isset($cache[$a_obj_id . '_' . $a_type])) {
236 return $cache[$a_obj_id . '_' . $a_type];
237 }
238
240 $cache[$a_obj_id . '_' . $a_type] = $class::_getFailed($a_obj_id);
241
242 return $cache[$a_obj_id . '_' . $a_type];
243 }

References $a_type, and ilLPStatusFactory\_getClassByIdAndType().

Referenced by _getCountFailedByType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getInProgress()

static ilLPStatusWrapper::_getInProgress (   $a_obj_id)
static

Static function to read users who have the status 'in_progress'.

Definition at line 61 of file class.ilLPStatusWrapper.php.

62 {
63 if (isset(self::$in_progress_cache[$a_obj_id])) {
64 return self::$in_progress_cache[$a_obj_id];
65 }
66
67 global $DIC;
68
69 $class = ilLPStatusFactory::_getClassById($a_obj_id);
70 self::$in_progress_cache[$a_obj_id] = $class::_getInProgress($a_obj_id);
71
72 return self::$in_progress_cache[$a_obj_id];
73 }
global $DIC
Definition: saml.php:7

References $DIC, and ilLPStatusFactory\_getClassById().

Referenced by _getCountInProgress(), ilLPStatusCollection\_getInProgress(), ilLPStatusCollection\_getNotAttempted(), ilLPStatusEvent\_getNotAttempted(), ilLPStatusExerciseReturned\_getNotAttempted(), ilLPStatusManualByTutor\_getNotAttempted(), ilLPStatusObjectives\_getNotAttempted(), ilLPStatusSCORM\_getNotAttempted(), ilSoapLearningProgressAdministration\applyProgressFilter(), ilLPStatus\refreshStatus(), ilLPStatusSCORM\refreshStatus(), and ilLPStatusSCORMPackage\refreshStatus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getInProgressByType()

static ilLPStatusWrapper::_getInProgressByType (   $a_obj_id,
  $a_type 
)
static

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

194 {
195 static $cache = array();
196
197 if (isset($cache[$a_obj_id . '_' . $a_type])) {
198 return $cache[$a_obj_id . '_' . $a_type];
199 }
200
202 $cache[$a_obj_id . '_' . $a_type] = $class::_getInProgress($a_obj_id);
203
204 return $cache[$a_obj_id . '_' . $a_type];
205 }

References $a_type, and ilLPStatusFactory\_getClassByIdAndType().

Referenced by _getCountInProgressByType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getNotAttempted()

static ilLPStatusWrapper::_getNotAttempted (   $a_obj_id)
static

Static function to read the number of user who have the status 'not_attempted'.

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

39 {
40 if (isset(self::$not_attempted_cache[$a_obj_id])) {
41 return self::$not_attempted_cache[$a_obj_id];
42 }
43
44 $class = ilLPStatusFactory::_getClassById($a_obj_id);
45 self::$not_attempted_cache[$a_obj_id] = $class::_getNotAttempted($a_obj_id);
46
47 return self::$not_attempted_cache[$a_obj_id];
48 }

References ilLPStatusFactory\_getClassById().

Referenced by _getCountNotAttempted(), and ilLPStatus\refreshStatus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getNotAttemptedByType()

static ilLPStatusWrapper::_getNotAttemptedByType (   $a_obj_id,
  $a_type 
)
static

Definition at line 174 of file class.ilLPStatusWrapper.php.

175 {
176 static $cache = array();
177
178 if (isset($cache[$a_obj_id . '_' . $a_type])) {
179 return $cache[$a_obj_id . '_' . $a_type];
180 }
181
183 $cache[$a_obj_id . '_' . $a_type] = $class::_getNotAttempted($a_obj_id);
184
185 return $cache[$a_obj_id . '_' . $a_type];
186 }

References $a_type, and ilLPStatusFactory\_getClassByIdAndType().

Referenced by _getCountNotAttemptedByType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getStatusInfo()

static ilLPStatusWrapper::_getStatusInfo (   $a_obj_id)
static

Reads informations about the object e.g test results, tlt, number of visits.

Definition at line 124 of file class.ilLPStatusWrapper.php.

125 {
126 if (isset(self::$info_cache[$a_obj_id])) {
127 return self::$info_cache[$a_obj_id];
128 }
129
130 $class = ilLPStatusFactory::_getClassById($a_obj_id);
131 self::$info_cache[$a_obj_id] = $class::_getStatusInfo($a_obj_id);
132 return self::$info_cache[$a_obj_id];
133 }

References ilLPStatusFactory\_getClassById().

Referenced by ilLPStatusCollectionManual\_getCompleted(), ilLPStatusCollectionMobs\_getCompleted(), ilLPStatusCollectionTLT\_getCompleted(), ilLPStatusEvent\_getCompleted(), ilLPStatusObjectives\_getCompleted(), ilLPStatusSCORM\_getCompleted(), ilLPStatusSCORMPackage\_getCompleted(), ilLPStatusTypicalLearningTime\_getCompleted(), ilLPStatusVisits\_getCompleted(), ilLPStatusObjectives\_getFailed(), ilLPStatusSCORM\_getFailed(), ilLPStatusSCORMPackage\_getFailed(), ilLPStatusCollectionManual\_getInProgress(), ilLPStatusCollectionMobs\_getInProgress(), ilLPStatusCollectionTLT\_getInProgress(), ilLPStatusEvent\_getInProgress(), ilLPStatusObjectives\_getInProgress(), ilLPStatusSCORM\_getInProgress(), ilLPStatusSCORMPackage\_getInProgress(), ilLPStatusTypicalLearningTime\_getInProgress(), ilLPStatusVisits\_getInProgress(), ilLPStatusEvent\_getNotAttempted(), ilLPStatusCollection\_getTypicalLearningTime(), ilLPStatusTypicalLearningTime\determineStatus(), ilLPStatusVisits\determineStatus(), ilTrQuery\getSCOsStatusForUser(), ilTrQuery\getSubItemsStatusForUser(), and ilLPStatusTestPassed\getUserIdsByResultArrayStatus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getStatusInfoByType()

static ilLPStatusWrapper::_getStatusInfoByType (   $a_obj_id,
  $a_type 
)
static

Definition at line 245 of file class.ilLPStatusWrapper.php.

246 {
247 static $cache = array();
248
249 if (isset($cache[$a_obj_id . '_' . $a_type])) {
250 return $cache[$a_obj_id . '_' . $a_type];
251 }
252
254 $cache[$a_obj_id . '_' . $a_type] = $class::_getStatusInfo($a_obj_id);
255
256 return $cache[$a_obj_id . '_' . $a_type];
257 }

References $a_type, and ilLPStatusFactory\_getClassByIdAndType().

+ Here is the call graph for this function:

◆ _getTypicalLearningTime()

static ilLPStatusWrapper::_getTypicalLearningTime (   $a_obj_id)
static

Reads Typical learning time.

Mode collection is recursive for all assigned items

Definition at line 147 of file class.ilLPStatusWrapper.php.

148 {
149 static $cache = array();
150
151 if (isset($cache[$a_obj_id])) {
152 return $cache[$a_obj_id];
153 }
154
155 $class = ilLPStatusFactory::_getClassById($a_obj_id);
156 $cache[$a_obj_id] = $class::_getTypicalLearningTime($a_obj_id);
157
158 return $cache[$a_obj_id];
159 }

References ilLPStatusFactory\_getClassById().

Referenced by ilLPStatusCollection\_getTypicalLearningTime().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupCompletedForObject()

static ilLPStatusWrapper::_lookupCompletedForObject (   $a_obj_id,
  $a_user_ids = null 
)
static

Get completed users for object.

Parameters
int$a_obj_id
array$a_user_ids
Returns
array

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

329 {
330 $class = ilLPStatusFactory::_getClassById($a_obj_id);
331 return $class::_lookupCompletedForObject($a_obj_id, $a_user_ids);
332 }

References ilLPStatusFactory\_getClassById().

Referenced by ilLPCronObjectStatistics\gatherCourseLPData(), ilCourseMembershipGUI\getPrintMemberData(), ilObjCourseGUI\readMemberData(), ilObjGroupGUI\readMemberData(), and ilLearningSequenceRoles\readMemberData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupFailedForObject()

static ilLPStatusWrapper::_lookupFailedForObject (   $a_obj_id,
  $a_user_ids = null 
)
static

Get failed users for object.

Parameters
int$a_obj_id
array$a_user_ids
Returns
array

Definition at line 341 of file class.ilLPStatusWrapper.php.

342 {
343 $class = ilLPStatusFactory::_getClassById($a_obj_id);
344 return $class::_lookupFailedForObject($a_obj_id, $a_user_ids);
345 }

References ilLPStatusFactory\_getClassById().

Referenced by ilLPCronObjectStatistics\gatherCourseLPData(), ilCourseMembershipGUI\getPrintMemberData(), ilObjCourseGUI\readMemberData(), ilObjGroupGUI\readMemberData(), and ilLearningSequenceRoles\readMemberData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupInProgressForObject()

static ilLPStatusWrapper::_lookupInProgressForObject (   $a_obj_id,
  $a_user_ids = null 
)
static

Get in progress users for object.

Parameters
int$a_obj_id
array$a_user_ids
Returns
array

Definition at line 354 of file class.ilLPStatusWrapper.php.

355 {
356 $class = ilLPStatusFactory::_getClassById($a_obj_id);
357 return $class::_lookupInProgressForObject($a_obj_id, $a_user_ids);
358 }

References ilLPStatusFactory\_getClassById().

Referenced by ilLPCronObjectStatistics\gatherCourseLPData(), ilCourseMembershipGUI\getPrintMemberData(), ilObjCourseGUI\readMemberData(), ilObjGroupGUI\readMemberData(), and ilLearningSequenceRoles\readMemberData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _refreshStatus()

static ilLPStatusWrapper::_refreshStatus (   $a_obj_id,
  $a_users = null 
)
static

◆ _removeStatusCache()

static ilLPStatusWrapper::_removeStatusCache (   $a_obj_id,
  $a_usr_id 
)
static

Definition at line 316 of file class.ilLPStatusWrapper.php.

317 {
318 unset(self::$status_cache[$a_obj_id][$a_usr_id]);
319 }

Referenced by ilLPStatus\writeStatus().

+ Here is the caller graph for this function:

◆ _resetInfoCaches()

static ilLPStatusWrapper::_resetInfoCaches (   $a_obj_id)
static

Definition at line 135 of file class.ilLPStatusWrapper.php.

136 {
137 unset(self::$info_cache[$a_obj_id]);
138 unset(self::$failed_cache[$a_obj_id]);
139 unset(self::$completed_cache[$a_obj_id]);
140 unset(self::$in_progress_cache[$a_obj_id]);
141 unset(self::$not_attempted_cache[$a_obj_id]);
142 }

◆ _setDirty()

static ilLPStatusWrapper::_setDirty (   $a_obj_id)
static

Set dirty.

Parameters
integerobject id

Definition at line 278 of file class.ilLPStatusWrapper.php.

279 {
280 $trac_obj = ilLPStatusFactory::_getInstance($a_obj_id);
281 $trac_obj->_setDirty($a_obj_id);
282 }

References ilLPStatusFactory\_getInstance().

+ Here is the call graph for this function:

◆ _updateStatus()

static ilLPStatusWrapper::_updateStatus (   $a_obj_id,
  $a_usr_id,
  $a_obj = null,
  $a_percentage = false,
  $a_force_raise = false 
)
static

Update status.

Parameters

return

Definition at line 265 of file class.ilLPStatusWrapper.php.

266 {
267 $trac_obj = ilLPStatusFactory::_getInstance($a_obj_id);
268 if (strtolower(get_class($trac_obj)) != "illpstatus") {
269 $trac_obj->_updateStatus($a_obj_id, $a_usr_id, $a_obj, $a_percentage, $a_force_raise);
270 }
271 }

References ilLPStatusFactory\_getInstance().

Referenced by ilCourseObjectiveResult\__updatePassed(), ilLearningProgressBaseGUI\__updateUser(), ilObjSCORMTracking\_insertTrackData(), ilLPStatus\_lookupStatus(), ilLPStatus\_lookupStatusChanged(), ilEventParticipants\_register(), ilLPStatusCollectionManual\_setObjectStatus(), ilEventParticipants\_unregister(), ilEventParticipants\_updateParticipation(), ilExerciseMembers\_writeReturned(), ilExerciseMembers\_writeStatus(), ilExerciseMembers\assignMember(), ilSurveyExecutionGUI\confirmedFinish(), ilExerciseMembers\deassignMember(), ilObjSCORMLearningModule\decreaseAttemptsForUser(), ilObjSCORM2004LearningModule\deleteTrackingDataOfUsers(), ilObjSCORMLearningModule\deleteTrackingDataOfUsers(), ilObjMediaCast\handleLPUpdate(), assFileUpload\handleSubmission(), ilExerciseMembers\ilClone(), ilSCORMPresentationGUI\increase_attemptAndsave_module_version(), ilObjLearningSequence\isCompletedByUser(), ilLPStatus\refreshStatus(), ilCourseObjectiveResult\reset(), ilObjectLP\resetLPDataForUserIds(), ilTestScoringByQuestionsGUI\saveManScoringByQuestion(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilInfoScreenGUI\saveProgress(), ilTestSessionDynamicQuestionSet\saveToDb(), ilObjFileGUI\sendFile(), ilLPStatus\setInProgressIfNotAttempted(), ilObjMediaCastGUI\showContentObject(), ilObjSCORMTracking\store(), ilObjCourse\syncMembersStatusWithLP(), ilContentPageKioskModeView\toggleLearningProgress(), ilLMTracker\trackAccess(), ilObjContentPage\trackProgress(), ilTestPassFinishTasks\updateLearningProgressAfterPassFinishedIsWritten(), ilTestOutputGUI\updateLearningProgressOnTestStart(), ilObjCourseGUI\updateLPFromStatus(), ilLOTestQuestionAdapter\updateQuestionResult(), ilEventParticipants\updateUser(), and ilLPStatus\writeStatus().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $completed_cache

ilLPStatusWrapper::$completed_cache = array()
staticprivate

Definition at line 23 of file class.ilLPStatusWrapper.php.

◆ $failed_cache

ilLPStatusWrapper::$failed_cache = array()
staticprivate

Definition at line 22 of file class.ilLPStatusWrapper.php.

◆ $in_progress_cache

ilLPStatusWrapper::$in_progress_cache = array()
staticprivate

Definition at line 24 of file class.ilLPStatusWrapper.php.

◆ $info_cache

ilLPStatusWrapper::$info_cache = array()
staticprivate

Definition at line 21 of file class.ilLPStatusWrapper.php.

◆ $not_attempted_cache

ilLPStatusWrapper::$not_attempted_cache = array()
staticprivate

Definition at line 25 of file class.ilLPStatusWrapper.php.

◆ $status_cache

ilLPStatusWrapper::$status_cache = array()
staticprivate

Definition at line 20 of file class.ilLPStatusWrapper.php.


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