5 include_once
'Services/Tracking/classes/class.ilLPStatus.php';
6 include_once
'Services/Tracking/classes/class.ilLearningProgress.php';
24 parent::__construct($a_obj_id);
35 $required_visits = $status_info[
'visits'];
37 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
39 foreach ($all as $event) {
40 if ($event[
'read_count'] < $required_visits) {
41 $user_ids[] = $event[
'usr_id'];
44 return $user_ids ? $user_ids : array();
54 $required_visits = $status_info[
'visits'];
56 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
58 foreach ($all as $event) {
59 if ($event[
'read_count'] >= $required_visits) {
60 $user_ids[] = $event[
'usr_id'];
63 return $user_ids ? $user_ids : array();
68 include_once
'Services/Tracking/classes/class.ilLPObjSettings.php';
86 $ilObjDataCache = $DIC[
'ilObjDataCache'];
89 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
90 switch ($ilObjDataCache->lookupType($a_obj_id)) {
92 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
94 $status = self::LP_STATUS_IN_PROGRESS_NUM;
98 $required_visits = $status_info[
'visits'];
100 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
102 if ($re[0][
'read_count'] >= $required_visits) {
103 $status = self::LP_STATUS_COMPLETED_NUM;
121 include_once
'Services/Tracking/classes/class.ilLPObjSettings.php';
125 $rc = (int) $re[0][
"read_count"];
128 $per = min(100, 100 / $reqv * $rc);
static hasAccessed($a_obj_id, $a_usr_id)
Has accessed.
static _getInProgress($a_obj_id)
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
static _getCompleted($a_obj_id)
static _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 ...
static _getStatusInfo($a_obj_id)
Reads informations about the object e.g test results, tlt, number of visits.
static _lookupVisits($a_obj_id)
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
determinePercentage($a_obj_id, $a_user_id, $a_obj=null)
Determine percentage.