5 include_once
'Services/Tracking/classes/class.ilLPStatus.php';
6 include_once
'Services/Tracking/classes/class.ilLearningProgress.php';
23 parent::ilLPStatus($a_obj_id);
32 $required_visits = $status_info[
'visits'];
34 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
36 foreach($all as $event)
38 if($event[
'read_count'] < $required_visits)
40 $user_ids[] = $event[
'usr_id'];
43 return $user_ids ? $user_ids : array();
51 $required_visits = $status_info[
'visits'];
53 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
55 foreach($all as $event)
57 if($event[
'read_count'] >= $required_visits)
59 $user_ids[] = $event[
'usr_id'];
62 return $user_ids ? $user_ids : array();
67 include_once
'Services/Tracking/classes/class.ilLPObjSettings.php';
83 global $ilObjDataCache,
$ilDB;
85 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
86 switch ($ilObjDataCache->lookupType($a_obj_id))
89 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
92 $status = self::LP_STATUS_IN_PROGRESS_NUM;
96 $required_visits = $status_info[
'visits'];
98 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
100 if ($re[0][
'read_count'] >= $required_visits)
102 $status = self::LP_STATUS_COMPLETED_NUM;
120 include_once
'Services/Tracking/classes/class.ilLPObjSettings.php';
124 $rc = (int) $re[0][
"read_count"];
128 $per = min(100, 100 / $reqv * $rc);
static hasAccessed($a_obj_id, $a_usr_id)
Has accessed.
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
_getInProgress($a_obj_id)
_getStatusInfo($a_obj_id)
Reads informations about the object e.g test results, tlt, number of visits.
ilLPStatusVisits($a_obj_id)
_getStatusInfo($a_obj_id)
static _lookupReadEvents($obj_id, $usr_id=null)
Reads all read events which occured on the object which happened after the last time the user caught ...
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
determinePercentage($a_obj_id, $a_user_id, $a_obj=null)
Determine percentage.