ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilLPStatusWrapper Class Reference

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

+ Inheritance diagram for ilLPStatusWrapper:
+ Collaboration diagram for ilLPStatusWrapper:

Static Public Member Functions

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

Static Private Attributes

static array $status_cache = array()
 
static array $info_cache = array()
 
static array $failed_cache = array()
 
static array $completed_cache = array()
 
static array $in_progress_cache = array()
 
static array $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: get rid of static calls

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

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

Member Function Documentation

◆ _determineStatus()

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

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

References ilLPStatusFactory\_getInstance().

Referenced by ilLPStatusCollection\determineGroupingStatus().

315  : int
316  {
317  if (isset(self::$status_cache[$a_obj_id][$a_usr_id])) {
318  return self::$status_cache[$a_obj_id][$a_usr_id];
319  }
320 
321  $trac_obj = ilLPStatusFactory::_getInstance($a_obj_id);
322  $st = $trac_obj->determineStatus($a_obj_id, $a_usr_id);
323 
324  self::$status_cache[$a_obj_id][$a_usr_id] = $st;
325  return $st;
326  }
static _getInstance(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getCompleted()

static ilLPStatusWrapper::_getCompleted ( int  $a_obj_id)
static

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

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

References ilLPStatusFactory\_getClassById().

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

85  : array
86  {
87  if (isset(self::$completed_cache[$a_obj_id])) {
88  return self::$completed_cache[$a_obj_id];
89  }
90  $class = ilLPStatusFactory::_getClassById($a_obj_id);
91  self::$completed_cache[$a_obj_id] = $class::_getCompleted($a_obj_id);
92 
93  return self::$completed_cache[$a_obj_id];
94  }
static _getClassById(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getCompletedByType()

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

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

References ilLPStatusFactory\_getClassByIdAndType().

Referenced by _getCountCompletedByType().

230  : array {
231  static $cache = array();
232 
233  if (isset($cache[$a_obj_id . '_' . $a_type])) {
234  return $cache[$a_obj_id . '_' . $a_type];
235  }
236 
237  $class = ilLPStatusFactory::_getClassByIdAndType($a_obj_id, $a_type);
238  $cache[$a_obj_id . '_' . $a_type] = $class::_getCompleted($a_obj_id);
239 
240  return $cache[$a_obj_id . '_' . $a_type];
241  }
static _getClassByIdAndType(int $a_obj_id, string $a_type)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getCountCompleted()

static ilLPStatusWrapper::_getCountCompleted ( int  $a_obj_id)
static

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

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

References _getCompleted().

77  : int
78  {
79  return count(ilLPStatusWrapper::_getCompleted($a_obj_id));
80  }
static _getCompleted(int $a_obj_id)
Static function to read the users who have the status 'completed'.
+ Here is the call graph for this function:

◆ _getCountCompletedByType()

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

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

References _getCompletedByType().

221  : int {
222  return count(
223  ilLPStatusWrapper::_getCompletedByType($a_obj_id, $a_type)
224  );
225  }
static _getCompletedByType(int $a_obj_id, string $a_type)
+ Here is the call graph for this function:

◆ _getCountFailed()

static ilLPStatusWrapper::_getCountFailed ( int  $a_obj_id)
static

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

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

References _getFailed().

99  : int
100  {
101  return count(ilLPStatusWrapper::_getFailed($a_obj_id));
102  }
static _getFailed(int $a_obj_id)
Static function to read the users who have the status 'completed'.
+ Here is the call graph for this function:

◆ _getCountFailedByType()

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

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

References _getFailedByType().

246  : int {
247  return count(ilLPStatusWrapper::_getFailedByType($a_obj_id, $a_type));
248  }
static _getFailedByType(int $a_obj_id, string $a_type)
+ Here is the call graph for this function:

◆ _getCountInProgress()

static ilLPStatusWrapper::_getCountInProgress ( int  $a_obj_id)
static

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

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

References _getInProgress().

52  : int
53  {
54  return count(ilLPStatusWrapper::_getInProgress($a_obj_id));
55  }
static _getInProgress(int $a_obj_id)
Static function to read users who have the status 'in_progress'.
+ Here is the call graph for this function:

◆ _getCountInProgressByType()

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

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

References _getInProgressByType().

196  : int {
197  return count(
198  ilLPStatusWrapper::_getInProgressByType($a_obj_id, $a_type)
199  );
200  }
static _getInProgressByType(int $a_obj_id, string $a_type)
+ Here is the call graph for this function:

◆ _getCountNotAttempted()

static ilLPStatusWrapper::_getCountNotAttempted ( int  $a_obj_id)
static

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

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

References _getNotAttempted().

27  : int
28  {
29  return count(ilLPStatusWrapper::_getNotAttempted($a_obj_id));
30  }
static _getNotAttempted(int $a_obj_id)
Static function to read the number of user who have the status 'not_attempted'.
+ Here is the call graph for this function:

◆ _getCountNotAttemptedByType()

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

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

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

References _getNotAttemptedByType().

171  : int {
172  return count(
174  );
175  }
static _getNotAttemptedByType(int $a_obj_id, string $a_type)
+ Here is the call graph for this function:

◆ _getFailed()

static ilLPStatusWrapper::_getFailed ( int  $a_obj_id)
static

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

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

References ilLPStatusFactory\_getClassById().

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

107  : array
108  {
109  if (isset(self::$failed_cache[$a_obj_id])) {
110  return self::$failed_cache[$a_obj_id];
111  }
112 
113  $class = ilLPStatusFactory::_getClassById($a_obj_id);
114 
115  self::$failed_cache[$a_obj_id] = $class::_getFailed($a_obj_id);
116 
117  return self::$failed_cache[$a_obj_id];
118  }
static _getClassById(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getFailedByType()

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

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

References ilLPStatusFactory\_getClassByIdAndType().

Referenced by _getCountFailedByType().

253  : array {
254  static $cache = array();
255 
256  if (isset($cache[$a_obj_id . '_' . $a_type])) {
257  return $cache[$a_obj_id . '_' . $a_type];
258  }
259 
260  $class = ilLPStatusFactory::_getClassByIdAndType($a_obj_id, $a_type);
261  $cache[$a_obj_id . '_' . $a_type] = $class::_getFailed($a_obj_id);
262 
263  return $cache[$a_obj_id . '_' . $a_type];
264  }
static _getClassByIdAndType(int $a_obj_id, string $a_type)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getInProgress()

static ilLPStatusWrapper::_getInProgress ( int  $a_obj_id)
static

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

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

References $DIC, and ilLPStatusFactory\_getClassById().

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

60  : array
61  {
62  if (isset(self::$in_progress_cache[$a_obj_id])) {
63  return self::$in_progress_cache[$a_obj_id];
64  }
65 
66  global $DIC;
67 
68  $class = ilLPStatusFactory::_getClassById($a_obj_id);
69  self::$in_progress_cache[$a_obj_id] = $class::_getInProgress($a_obj_id);
70 
71  return self::$in_progress_cache[$a_obj_id];
72  }
global $DIC
Definition: feed.php:28
static _getClassById(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getInProgressByType()

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

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

References ilLPStatusFactory\_getClassByIdAndType().

Referenced by _getCountInProgressByType().

205  : array {
206  static $cache = array();
207 
208  if (isset($cache[$a_obj_id . '_' . $a_type])) {
209  return $cache[$a_obj_id . '_' . $a_type];
210  }
211 
212  $class = ilLPStatusFactory::_getClassByIdAndType($a_obj_id, $a_type);
213  $cache[$a_obj_id . '_' . $a_type] = $class::_getInProgress($a_obj_id);
214 
215  return $cache[$a_obj_id . '_' . $a_type];
216  }
static _getClassByIdAndType(int $a_obj_id, string $a_type)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getNotAttempted()

static ilLPStatusWrapper::_getNotAttempted ( int  $a_obj_id)
static

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

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

References ilLPStatusFactory\_getClassById().

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

35  : array
36  {
37  if (isset(self::$not_attempted_cache[$a_obj_id])) {
38  return self::$not_attempted_cache[$a_obj_id];
39  }
40 
41  $class = ilLPStatusFactory::_getClassById($a_obj_id);
42  self::$not_attempted_cache[$a_obj_id] = $class::_getNotAttempted(
43  $a_obj_id
44  );
45 
46  return self::$not_attempted_cache[$a_obj_id];
47  }
static _getClassById(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getNotAttemptedByType()

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

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

References ilLPStatusFactory\_getClassByIdAndType().

Referenced by _getCountNotAttemptedByType().

180  : array {
181  static $cache = array();
182 
183  if (isset($cache[$a_obj_id . '_' . $a_type])) {
184  return $cache[$a_obj_id . '_' . $a_type];
185  }
186 
187  $class = ilLPStatusFactory::_getClassByIdAndType($a_obj_id, $a_type);
188  $cache[$a_obj_id . '_' . $a_type] = $class::_getNotAttempted($a_obj_id);
189 
190  return $cache[$a_obj_id . '_' . $a_type];
191  }
static _getClassByIdAndType(int $a_obj_id, string $a_type)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getStatusInfo()

static ilLPStatusWrapper::_getStatusInfo ( int  $a_obj_id)
static

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

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

References ilLPStatusFactory\_getClassById().

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

123  : array
124  {
125  if (isset(self::$info_cache[$a_obj_id])) {
126  return self::$info_cache[$a_obj_id];
127  }
128 
129  $class = ilLPStatusFactory::_getClassById($a_obj_id);
130  self::$info_cache[$a_obj_id] = $class::_getStatusInfo($a_obj_id);
131  return self::$info_cache[$a_obj_id];
132  }
static _getClassById(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _getStatusInfoByType()

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

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

References ilLPStatusFactory\_getClassByIdAndType().

269  : array {
270  static $cache = array();
271 
272  if (isset($cache[$a_obj_id . '_' . $a_type])) {
273  return $cache[$a_obj_id . '_' . $a_type];
274  }
275 
276  $class = ilLPStatusFactory::_getClassByIdAndType($a_obj_id, $a_type);
277  $cache[$a_obj_id . '_' . $a_type] = $class::_getStatusInfo($a_obj_id);
278 
279  return $cache[$a_obj_id . '_' . $a_type];
280  }
static _getClassByIdAndType(int $a_obj_id, string $a_type)
+ Here is the call graph for this function:

◆ _getTypicalLearningTime()

static ilLPStatusWrapper::_getTypicalLearningTime ( int  $a_obj_id)
static

Reads Typical learning time.

Mode collection is recursive for all assigned items

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

References ilLPStatusFactory\_getClassById().

Referenced by ilLPStatusCollection\_getTypicalLearningTime().

146  : int
147  {
148  static $cache = array();
149 
150  if (isset($cache[$a_obj_id])) {
151  return $cache[$a_obj_id];
152  }
153 
154  $class = ilLPStatusFactory::_getClassById($a_obj_id);
155  $cache[$a_obj_id] = $class::_getTypicalLearningTime($a_obj_id);
156 
157  return $cache[$a_obj_id];
158  }
static _getClassById(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupCompletedForObject()

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

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

References ilLPStatusFactory\_getClassById().

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

338  : array {
339  $class = ilLPStatusFactory::_getClassById($a_obj_id);
340  return $class::_lookupCompletedForObject($a_obj_id, $a_user_ids);
341  }
static _getClassById(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupFailedForObject()

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

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

References ilLPStatusFactory\_getClassById().

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

346  : array {
347  $class = ilLPStatusFactory::_getClassById($a_obj_id);
348  return $class::_lookupFailedForObject($a_obj_id, $a_user_ids);
349  }
static _getClassById(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _lookupInProgressForObject()

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

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

References ilLPStatusFactory\_getClassById().

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

354  : array {
355  $class = ilLPStatusFactory::_getClassById($a_obj_id);
356  return $class::_lookupInProgressForObject($a_obj_id, $a_user_ids);
357  }
static _getClassById(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _refreshStatus()

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

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

References ilLPStatusFactory\_getInstance().

Referenced by ilCourseObjective\_deleteAll(), ilLOEditorGUI\activateObjectives(), ilCourseObjective\add(), ILIAS\MediaCast\LearningProgress\LearningProgressManager\addItemToLP(), ilLPListOfSettingsGUI\assign(), ilLOEditorGUI\deactivateObjectives(), ilLPListOfSettingsGUI\deassign(), ilExerciseMembers\delete(), ilCourseObjective\delete(), ilSCORMItem\delete(), ilLOEditorGUI\deleteObjectives(), ilLPObjSettings\doLPRefresh(), ilObjContentObject\doMDUpdateListener(), ilLPListOfSettingsGUI\groupMaterials(), ilObjectLP\handleMove(), ilForumXMLParser\handlerEndTag(), ilObjSCORMLearningModule\importRaw(), ilObjSCORM2004LearningModule\importSuccess(), ilObjSCORMLearningModule\importSuccess(), ilLMObject\MDUpdateListener(), ilTestCorrectionsGUI\performQuestionRemoval(), ilLPListOfSettingsGUI\releaseMaterials(), ilSCORM13Package\removeCMIData(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilLOEditorGUI\saveSettings(), ilLTIConsumerSettingsGUI\saveSettingsCmd(), ilConditionHandlerGUI\updateCondition(), ilObjectLP\updateParentCollections(), and ilLPListOfSettingsGUI\updateTLT().

310  : void {
311  $trac_obj = ilLPStatusFactory::_getInstance($a_obj_id);
312  $trac_obj->refreshStatus($a_obj_id, $a_users);
313  }
static _getInstance(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _removeStatusCache()

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

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

Referenced by ilLPStatus\writeStatus().

331  : void {
332  unset(self::$status_cache[$a_obj_id][$a_usr_id]);
333  }
+ Here is the caller graph for this function:

◆ _resetInfoCaches()

static ilLPStatusWrapper::_resetInfoCaches (   $a_obj_id)
static

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

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

◆ _setDirty()

static ilLPStatusWrapper::_setDirty ( int  $a_obj_id)
static

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

References ilLPStatusFactory\_getInstance().

301  : void
302  {
303  $trac_obj = ilLPStatusFactory::_getInstance($a_obj_id);
304  $trac_obj->_setDirty($a_obj_id);
305  }
static _getInstance(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:

◆ _updateStatus()

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

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

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(), ilObjSCORM2004LearningModule\deleteTrackingDataOfUsers(), ilObjSCORMLearningModule\deleteTrackingDataOfUsers(), ilXapiStatementEvaluation\evaluateReport(), ilTrackingAppEventListener\handleEvent(), XapiProxy\XapiProxy\handleStatementEvaluation(), assFileUpload\handleSubmission(), ilExerciseMembers\ilClone(), ilSCORMPresentationGUI\increase_attemptAndsave_module_version(), ilCmiXapiLaunchGUI\initCmixUser(), ilLearningSequenceRoles\isCompletedByUser(), ilObjTest\recalculateScores(), ilObjStudyProgramme\refreshLPStatus(), ilLPStatus\refreshStatus(), ilCourseObjectiveResult\reset(), ilObjectLP\resetLPDataForUserIds(), ILIAS\MediaObjects\Tracking\TrackingManager\saveCompletion(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilInfoScreenGUI\saveProgress(), ilTestSessionDynamicQuestionSet\saveToDb(), ilObjFileGUI\sendFile(), ilLPStatus\setInProgressIfNotAttempted(), ilObjMediaCastGUI\showContentObject(), ilObjFileBasedLMGUI\showLearningModule(), ilTestScoringByQuestionsGUI\showManScoringByQuestionParticipantsTable(), ilObjCourse\syncMembersStatusWithLP(), ilContentPageKioskModeView\toggleLearningProgress(), ilLearningModuleKioskModeView\toggleLearningProgress(), ilLMTracker\trackAccess(), ilObjLTIConsumerGUI\trackObjectReadEvent(), ilTestPassFinishTasks\updateLearningProgressAfterPassFinishedIsWritten(), ilTestOutputGUI\updateLearningProgressOnTestStart(), ilLTIConsumerResultService\updateLP(), ilObjCourseGUI\updateLPFromStatus(), PRGEventHandler\updateLPStatus(), ilIndividualAssessmentLPInterface\updateLPStatusByIds(), ilIndividualAssessmentLPInterface\updateLPStatusOfMember(), ilLOTestQuestionAdapter\updateQuestionResult(), ilEventParticipants\updateUser(), and ilLPStatus\writeStatus().

288  : void {
289  $trac_obj = ilLPStatusFactory::_getInstance($a_obj_id);
290  if (strtolower(get_class($trac_obj)) != "illpstatus") {
291  $trac_obj->_updateStatus(
292  $a_obj_id,
293  $a_usr_id,
294  $a_obj,
295  $a_percentage,
296  $a_force_raise
297  );
298  }
299  }
static _getInstance(int $a_obj_id, ?int $a_mode=null)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $completed_cache

array ilLPStatusWrapper::$completed_cache = array()
staticprivate

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

◆ $failed_cache

array ilLPStatusWrapper::$failed_cache = array()
staticprivate

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

◆ $in_progress_cache

array ilLPStatusWrapper::$in_progress_cache = array()
staticprivate

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

◆ $info_cache

array ilLPStatusWrapper::$info_cache = array()
staticprivate

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

◆ $not_attempted_cache

array ilLPStatusWrapper::$not_attempted_cache = array()
staticprivate

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

◆ $status_cache

array ilLPStatusWrapper::$status_cache = array()
staticprivate

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


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