5 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
6 include_once
'./Services/MetaData/classes/class.ilMDEducational.php';
24 parent::__construct($a_obj_id);
35 $tlt = $status_info[
'tlt'];
37 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
40 foreach ($all as $event) {
41 if ($event[
'spent_seconds'] < $tlt) {
42 $user_ids[] = $event[
'usr_id'];
45 return $user_ids ? $user_ids : array();
55 $tlt = $status_info[
'tlt'];
58 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
61 foreach ($all as $event) {
62 if ($event[
'spent_seconds'] >= $tlt) {
63 $user_ids[] = $event[
'usr_id'];
66 return $user_ids ? $user_ids : array();
88 $ilObjDataCache = $DIC[
'ilObjDataCache'];
91 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
92 switch ($ilObjDataCache->lookupType($a_obj_id)) {
95 $status = self::LP_STATUS_IN_PROGRESS_NUM;
99 $tlt = $status_info[
'tlt'];
101 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
103 if ($re[0][
'spent_seconds'] >= $tlt) {
104 $status = self::LP_STATUS_COMPLETED_NUM;
124 $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 ...
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)