5 include_once
'Services/Tracking/classes/class.ilLPStatus.php';
6 include_once
'Services/Tracking/classes/class.ilLearningProgress.php';
22 parent::__construct($a_obj_id);
31 $required_visits = $status_info[
'visits'];
33 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
35 foreach ($all as $event) {
36 if ($event[
'read_count'] < $required_visits) {
37 $user_ids[] = $event[
'usr_id'];
40 return $user_ids ? $user_ids :
array();
48 $required_visits = $status_info[
'visits'];
50 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
52 foreach ($all as $event) {
53 if ($event[
'read_count'] >= $required_visits) {
54 $user_ids[] = $event[
'usr_id'];
57 return $user_ids ? $user_ids :
array();
62 include_once
'Services/Tracking/classes/class.ilLPObjSettings.php';
78 global $ilObjDataCache,
$ilDB;
80 $status = self::LP_STATUS_NOT_ATTEMPTED_NUM;
81 switch ($ilObjDataCache->lookupType($a_obj_id)) {
83 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
85 $status = self::LP_STATUS_IN_PROGRESS_NUM;
89 $required_visits = $status_info[
'visits'];
91 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
93 if ($re[0][
'read_count'] >= $required_visits) {
94 $status = self::LP_STATUS_COMPLETED_NUM;
112 include_once
'Services/Tracking/classes/class.ilLPObjSettings.php';
116 $rc = (int) $re[0][
"read_count"];
119 $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 ...
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 _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.