5 include_once
'Services/Tracking/classes/class.ilLPStatus.php';
6 include_once
'Services/Tracking/classes/class.ilLPObjSettings.php';
7 include_once
'Services/Tracking/classes/class.ilLearningProgress.php';
33 $required_visits = $status_info[
'visits'];
35 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
37 foreach($all as $event)
39 if($event[
'read_count'] < $required_visits)
41 $user_ids[] = $event[
'usr_id'];
44 return $user_ids ? $user_ids : array();
52 $required_visits = $status_info[
'visits'];
54 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
56 foreach($all as $event)
58 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';
84 global $ilObjDataCache,
$ilDB;
87 switch ($ilObjDataCache->lookupType($a_obj_id))
96 $required_visits = $status_info[
'visits'];
98 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
100 if ($re[0][
'read_count'] >= $required_visits)
120 include_once
'Services/Tracking/classes/class.ilLPObjSettings.php';
124 $rc = (int) $re[0][
"read_count"];
128 $per = min(100, 100 / $reqv * $rc);