5 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
6 include_once
'./Services/MetaData/classes/class.ilMDEducational.php';
22 parent::__construct($a_obj_id);
31 $tlt = $status_info[
'tlt'];
33 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
36 foreach ($all as $event) {
37 if ($event[
'spent_seconds'] < $tlt) {
38 $user_ids[] = $event[
'usr_id'];
41 return $user_ids ? $user_ids :
array();
49 $tlt = $status_info[
'tlt'];
52 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
55 foreach ($all as $event) {
56 if ($event[
'spent_seconds'] >= $tlt) {
57 $user_ids[] = $event[
'usr_id'];
60 return $user_ids ? $user_ids :
array();
80 global $ilObjDataCache,
$ilDB;
82 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
83 switch ($ilObjDataCache->lookupType($a_obj_id)) {
86 $status = self::LP_STATUS_IN_PROGRESS_NUM;
90 $tlt = $status_info[
'tlt'];
92 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
94 if ($re[0][
'spent_seconds'] >= $tlt) {
95 $status = self::LP_STATUS_COMPLETED_NUM;
115 $spent = (int) $re[0][
"spent_seconds"];
118 $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)