ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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 (string $type, 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 29 of file class.ilLPStatusWrapper.php.

Member Function Documentation

◆ _determineStatus()

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

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

References ilLPStatusFactory\_getInstance().

Referenced by ilLPStatusCollection\determineGroupingStatus(), and ilLPStatusCollection\determinePercentage().

329  : int
330  {
331  if (isset(self::$status_cache[$a_obj_id][$a_usr_id])) {
332  return self::$status_cache[$a_obj_id][$a_usr_id];
333  }
334 
335  $trac_obj = ilLPStatusFactory::_getInstance($a_obj_id);
336  $st = $trac_obj->determineStatus($a_obj_id, $a_usr_id);
337 
338  self::$status_cache[$a_obj_id][$a_usr_id] = $st;
339  return $st;
340  }
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 99 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory\_getClassById().

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

99  : array
100  {
101  if (isset(self::$completed_cache[$a_obj_id])) {
102  return self::$completed_cache[$a_obj_id];
103  }
104  $class = ilLPStatusFactory::_getClassById($a_obj_id);
105  self::$completed_cache[$a_obj_id] = $class::_getCompleted($a_obj_id);
106 
107  return self::$completed_cache[$a_obj_id];
108  }
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 241 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory\_getClassByIdAndType().

Referenced by _getCountCompletedByType().

244  : array {
245  static $cache = array();
246 
247  if (isset($cache[$a_obj_id . '_' . $a_type])) {
248  return $cache[$a_obj_id . '_' . $a_type];
249  }
250 
251  $class = ilLPStatusFactory::_getClassByIdAndType($a_obj_id, $a_type);
252  $cache[$a_obj_id . '_' . $a_type] = $class::_getCompleted($a_obj_id);
253 
254  return $cache[$a_obj_id . '_' . $a_type];
255  }
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 91 of file class.ilLPStatusWrapper.php.

References _getCompleted().

91  : int
92  {
93  return count(ilLPStatusWrapper::_getCompleted($a_obj_id));
94  }
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 232 of file class.ilLPStatusWrapper.php.

References _getCompletedByType().

235  : int {
236  return count(
237  ilLPStatusWrapper::_getCompletedByType($a_obj_id, $a_type)
238  );
239  }
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 113 of file class.ilLPStatusWrapper.php.

References _getFailed().

113  : int
114  {
115  return count(ilLPStatusWrapper::_getFailed($a_obj_id));
116  }
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 257 of file class.ilLPStatusWrapper.php.

References _getFailedByType().

260  : int {
261  return count(ilLPStatusWrapper::_getFailedByType($a_obj_id, $a_type));
262  }
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 66 of file class.ilLPStatusWrapper.php.

References _getInProgress().

66  : int
67  {
68  return count(ilLPStatusWrapper::_getInProgress($a_obj_id));
69  }
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 207 of file class.ilLPStatusWrapper.php.

References _getInProgressByType().

210  : int {
211  return count(
212  ilLPStatusWrapper::_getInProgressByType($a_obj_id, $a_type)
213  );
214  }
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 41 of file class.ilLPStatusWrapper.php.

References _getNotAttempted().

41  : int
42  {
43  return count(ilLPStatusWrapper::_getNotAttempted($a_obj_id));
44  }
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 182 of file class.ilLPStatusWrapper.php.

References _getNotAttemptedByType().

185  : int {
186  return count(
188  );
189  }
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 121 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory\_getClassById().

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

121  : array
122  {
123  if (isset(self::$failed_cache[$a_obj_id])) {
124  return self::$failed_cache[$a_obj_id];
125  }
126 
127  $class = ilLPStatusFactory::_getClassById($a_obj_id);
128 
129  self::$failed_cache[$a_obj_id] = $class::_getFailed($a_obj_id);
130 
131  return self::$failed_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:

◆ _getFailedByType()

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

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

References ilLPStatusFactory\_getClassByIdAndType().

Referenced by _getCountFailedByType().

267  : array {
268  static $cache = array();
269 
270  if (isset($cache[$a_obj_id . '_' . $a_type])) {
271  return $cache[$a_obj_id . '_' . $a_type];
272  }
273 
274  $class = ilLPStatusFactory::_getClassByIdAndType($a_obj_id, $a_type);
275  $cache[$a_obj_id . '_' . $a_type] = $class::_getFailed($a_obj_id);
276 
277  return $cache[$a_obj_id . '_' . $a_type];
278  }
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 74 of file class.ilLPStatusWrapper.php.

References $DIC, and ilLPStatusFactory\_getClassById().

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

74  : array
75  {
76  if (isset(self::$in_progress_cache[$a_obj_id])) {
77  return self::$in_progress_cache[$a_obj_id];
78  }
79 
80  global $DIC;
81 
82  $class = ilLPStatusFactory::_getClassById($a_obj_id);
83  self::$in_progress_cache[$a_obj_id] = $class::_getInProgress($a_obj_id);
84 
85  return self::$in_progress_cache[$a_obj_id];
86  }
global $DIC
Definition: shib_login.php:26
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 216 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory\_getClassByIdAndType().

Referenced by _getCountInProgressByType().

219  : array {
220  static $cache = array();
221 
222  if (isset($cache[$a_obj_id . '_' . $a_type])) {
223  return $cache[$a_obj_id . '_' . $a_type];
224  }
225 
226  $class = ilLPStatusFactory::_getClassByIdAndType($a_obj_id, $a_type);
227  $cache[$a_obj_id . '_' . $a_type] = $class::_getInProgress($a_obj_id);
228 
229  return $cache[$a_obj_id . '_' . $a_type];
230  }
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 49 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory\_getClassById().

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

49  : array
50  {
51  if (isset(self::$not_attempted_cache[$a_obj_id])) {
52  return self::$not_attempted_cache[$a_obj_id];
53  }
54 
55  $class = ilLPStatusFactory::_getClassById($a_obj_id);
56  self::$not_attempted_cache[$a_obj_id] = $class::_getNotAttempted(
57  $a_obj_id
58  );
59 
60  return self::$not_attempted_cache[$a_obj_id];
61  }
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 191 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory\_getClassByIdAndType().

Referenced by _getCountNotAttemptedByType().

194  : array {
195  static $cache = array();
196 
197  if (isset($cache[$a_obj_id . '_' . $a_type])) {
198  return $cache[$a_obj_id . '_' . $a_type];
199  }
200 
201  $class = ilLPStatusFactory::_getClassByIdAndType($a_obj_id, $a_type);
202  $cache[$a_obj_id . '_' . $a_type] = $class::_getNotAttempted($a_obj_id);
203 
204  return $cache[$a_obj_id . '_' . $a_type];
205  }
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 137 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory\_getClassById().

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

137  : array
138  {
139  if (isset(self::$info_cache[$a_obj_id])) {
140  return self::$info_cache[$a_obj_id];
141  }
142 
143  $class = ilLPStatusFactory::_getClassById($a_obj_id);
144  self::$info_cache[$a_obj_id] = $class::_getStatusInfo($a_obj_id);
145  return self::$info_cache[$a_obj_id];
146  }
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 280 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory\_getClassByIdAndType().

283  : array {
284  static $cache = array();
285 
286  if (isset($cache[$a_obj_id . '_' . $a_type])) {
287  return $cache[$a_obj_id . '_' . $a_type];
288  }
289 
290  $class = ilLPStatusFactory::_getClassByIdAndType($a_obj_id, $a_type);
291  $cache[$a_obj_id . '_' . $a_type] = $class::_getStatusInfo($a_obj_id);
292 
293  return $cache[$a_obj_id . '_' . $a_type];
294  }
static _getClassByIdAndType(int $a_obj_id, string $a_type)
+ Here is the call graph for this function:

◆ _getTypicalLearningTime()

static ilLPStatusWrapper::_getTypicalLearningTime ( string  $type,
int  $a_obj_id 
)
static

Reads Typical learning time.

Mode collection is recursive for all assigned items

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

References ilLPStatusFactory\_getClassById().

Referenced by ilLPStatusCollection\_getTypicalLearningTime().

160  : int
161  {
162  static $cache = array();
163 
164  if (isset($cache[$a_obj_id])) {
165  return $cache[$a_obj_id];
166  }
167 
168  $class = ilLPStatusFactory::_getClassById($a_obj_id);
169  $cache[$a_obj_id] = $class::_getTypicalLearningTime($type, $a_obj_id);
170 
171  return $cache[$a_obj_id];
172  }
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 349 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory\_getClassById().

Referenced by ILIAS\Forum\Statistics\ForumStatisticsTable\__construct(), ilLPCronObjectStatistics\gatherCourseLPData(), ilCourseMembershipGUI\getPrintMemberData(), ilLearningSequenceRoles\readMemberData(), ilObjGroupGUI\readMemberData(), and ilObjCourseGUI\readMemberData().

352  : array {
353  $class = ilLPStatusFactory::_getClassById($a_obj_id);
354  return $class::_lookupCompletedForObject($a_obj_id, $a_user_ids);
355  }
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 357 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory\_getClassById().

Referenced by ILIAS\Forum\Statistics\ForumStatisticsTable\__construct(), ilLPCronObjectStatistics\gatherCourseLPData(), ilCourseMembershipGUI\getPrintMemberData(), ilLearningSequenceRoles\readMemberData(), ilObjGroupGUI\readMemberData(), and ilObjCourseGUI\readMemberData().

360  : array {
361  $class = ilLPStatusFactory::_getClassById($a_obj_id);
362  return $class::_lookupFailedForObject($a_obj_id, $a_user_ids);
363  }
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 365 of file class.ilLPStatusWrapper.php.

References ilLPStatusFactory\_getClassById().

Referenced by ILIAS\Forum\Statistics\ForumStatisticsTable\__construct(), ilLPCronObjectStatistics\gatherCourseLPData(), ilCourseMembershipGUI\getPrintMemberData(), ilLearningSequenceRoles\readMemberData(), ilObjGroupGUI\readMemberData(), and ilObjCourseGUI\readMemberData().

368  : array {
369  $class = ilLPStatusFactory::_getClassById($a_obj_id);
370  return $class::_lookupInProgressForObject($a_obj_id, $a_user_ids);
371  }
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 321 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(), ilLPListOfSettingsGUI\releaseMaterials(), ilSCORM13Package\removeCMIData(), ilObjTest\removeQuestionWithResults(), ilLPListOfSettingsGUI\saveObligatoryMaterials(), ilLOEditorGUI\saveSettings(), ilLTIConsumerSettingsGUI\saveSettingsCmd(), ilConditionHandlerGUI\updateCondition(), ilObjectLP\updateParentCollections(), and ilLPListOfSettingsGUI\updateTLT().

324  : void {
325  $trac_obj = ilLPStatusFactory::_getInstance($a_obj_id);
326  $trac_obj->refreshStatus($a_obj_id, $a_users);
327  }
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 342 of file class.ilLPStatusWrapper.php.

Referenced by ilLPStatus\writeStatus().

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

◆ _resetInfoCaches()

static ilLPStatusWrapper::_resetInfoCaches (   $a_obj_id)
static

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

149  {
150  unset(self::$info_cache[$a_obj_id]);
151  unset(self::$failed_cache[$a_obj_id]);
152  unset(self::$completed_cache[$a_obj_id]);
153  unset(self::$in_progress_cache[$a_obj_id]);
154  unset(self::$not_attempted_cache[$a_obj_id]);
155  }

◆ _setDirty()

static ilLPStatusWrapper::_setDirty ( int  $a_obj_id)
static

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

References ilLPStatusFactory\_getInstance().

315  : void
316  {
317  $trac_obj = ilLPStatusFactory::_getInstance($a_obj_id);
318  $trac_obj->_setDirty($a_obj_id);
319  }
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 296 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(), ilExerciseMembers\ilClone(), ilSCORMPresentationGUI\increase_attemptAndsave_module_version(), ilCmiXapiLaunchGUI\initCmixUser(), ilLearningSequenceRoles\isCompletedByUser(), ILIAS\Test\Scoring\Manual\TestScoring\recalculateSolutions(), ilObjStudyProgramme\refreshLPStatus(), ilLPStatus\refreshStatus(), ilCourseObjectiveResult\reset(), ilObjectLP\resetLPDataForUserIds(), ILIAS\MediaObjects\Tracking\TrackingManager\saveCompletion(), ILIAS\Test\Scoring\Manual\TestScoringByQuestionGUI\saveManScoringByQuestion(), ILIAS\Test\Scoring\Manual\TestScoringByParticipantGUI\saveManScoringParticipantScreen(), ilInfoScreenGUI\saveProgress(), ilLPStatus\setInProgressIfNotAttempted(), ilObjFileBasedLMGUI\setStartFile(), ilObjMediaCastGUI\showContentObject(), ilObjSCORMTracking\storeJsApiCmi(), ilObjSCORMTracking\syncGlobalStatus(), ilSCORM2004StoreData\syncGlobalStatus(), ilObjCourse\syncMembersStatusWithLP(), ilContentPageKioskModeView\toggleLearningProgress(), ilLearningModuleKioskModeView\toggleLearningProgress(), ilObjFileGUI\toggleLearningProgress(), ilLMTracker\trackAccess(), ilObjLTIConsumerGUI\trackObjectReadEvent(), ilObjFileGUI\updateLearningProgress(), ilTestPassFinishTasks\updateLearningProgressAfterPassFinishedIsWritten(), ilTestPlayerAbstractGUI\updateLearningProgressOnTestStart(), ilLTIConsumerResultService\updateLP(), ilObjCourseGUI\updateLPFromStatus(), PRGEventHandler\updateLPStatus(), ilIndividualAssessmentLPInterface\updateLPStatusByIds(), ilIndividualAssessmentLPInterface\updateLPStatusOfMember(), ilLOTestQuestionAdapter\updateQuestionResult(), ilEventParticipants\updateUser(), and ilLPStatus\writeStatus().

302  : void {
303  $trac_obj = ilLPStatusFactory::_getInstance($a_obj_id);
304  if (strtolower(get_class($trac_obj)) != "illpstatus") {
305  $trac_obj->_updateStatus(
306  $a_obj_id,
307  $a_usr_id,
308  $a_obj,
309  $a_percentage,
310  $a_force_raise
311  );
312  }
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:

Field Documentation

◆ $completed_cache

array ilLPStatusWrapper::$completed_cache = array()
staticprivate

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

◆ $failed_cache

array ilLPStatusWrapper::$failed_cache = array()
staticprivate

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

◆ $in_progress_cache

array ilLPStatusWrapper::$in_progress_cache = array()
staticprivate

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

◆ $info_cache

array ilLPStatusWrapper::$info_cache = array()
staticprivate

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

◆ $not_attempted_cache

array ilLPStatusWrapper::$not_attempted_cache = array()
staticprivate

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

◆ $status_cache

array ilLPStatusWrapper::$status_cache = array()
staticprivate

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


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