5 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
6 include_once
'./Services/MetaData/classes/class.ilMDEducational.php';
23 parent::__construct($a_obj_id);
32 $tlt = $status_info[
'tlt'];
34 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
37 foreach($all as $event)
39 if($event[
'spent_seconds'] < $tlt)
41 $user_ids[] = $event[
'usr_id'];
44 return $user_ids ? $user_ids :
array();
52 $tlt = $status_info[
'tlt'];
55 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
58 foreach($all as $event)
60 if($event[
'spent_seconds'] >= $tlt)
62 $user_ids[] = $event[
'usr_id'];
65 return $user_ids ? $user_ids :
array();
85 global $ilObjDataCache,
$ilDB;
87 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
88 switch ($ilObjDataCache->lookupType($a_obj_id))
93 $status = self::LP_STATUS_IN_PROGRESS_NUM;
97 $tlt = $status_info[
'tlt'];
99 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
101 if ($re[0][
'spent_seconds'] >= $tlt)
103 $status = self::LP_STATUS_COMPLETED_NUM;
123 $spent = (int) $re[0][
"spent_seconds"];
127 $per = min(100, 100 / $tlt * $spent);
static hasAccessed($a_obj_id, $a_usr_id)
Has accessed.
static _getTypicalLearningTimeSeconds($a_rbac_id, $a_obj_id=0)
static _getStatusInfo($a_obj_id)
determinePercentage($a_obj_id, $a_user_id, $a_obj=null)
Determine percentage.
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 ...
Create styles array
The data for the language used.
static _getStatusInfo($a_obj_id)
Reads informations about the object e.g test results, tlt, number of visits.
static _getCompleted($a_obj_id)
determineStatus($a_obj_id, $a_user_id, $a_obj=null)
Determine status.
Abstract class ilLPStatus for all learning progress modes E.g ilLPStatusManual, ilLPStatusObjectives ...
static _getInProgress($a_obj_id)