33 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
49 include_once
'./Services/Tracking/classes/class.ilLPCollectionCache.php';
50 include_once
'./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php';
55 foreach($status_info[
'in_progress'] as $in_progress)
57 $users = array_merge($users,$in_progress);
59 $users = array_unique($users);
70 include_once
'./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php';
74 $items = $status_info[
'scos'];
78 foreach($items as $sco_id)
80 $tmp_users = $status_info[
'completed'][$sco_id];
88 $users = array_intersect($users,$tmp_users);
100 if(!count($status_info[
'scos']))
105 foreach($status_info[
'scos'] as $sco_id)
107 $users = array_merge($users,(array) $status_info[
'failed'][$sco_id]);
109 return array_unique($users);
116 include_once
'./Services/Tracking/classes/class.ilLPCollectionCache.php';
119 $status_info[
'num_scos'] = count($status_info[
'scos']);
122 include_once
'./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
125 switch($status_info[
'subtype'])
129 include_once
'./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php';
132 include_once
'./Modules/ScormAicc/classes/class.ilObjAICCLearningModule.php';
135 if(in_array($item[
'obj_id'],$status_info[
'scos']))
137 $status_info[
'scos_title'][
"$item[obj_id]"] = $item[
'title'];
144 include_once
'./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php';
147 include_once
'./Modules/ScormAicc/classes/SCORM/class.ilSCORMItem.php';
148 foreach($status_info[
'scos'] as $sco_id)
156 include_once
'./Modules/Scorm2004/classes/class.ilSCORM2004Tracking.php';
158 include_once
'./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModule.php';
159 foreach($status_info[
'scos'] as $sco_id)
168 $status_info[
'completed'] = array();
169 $status_info[
'failed'] = array();
170 $status_info[
'in_progress'] = array();
171 foreach($status_info[
'scos'] as $sco_id)
173 $status_info[
'completed'][$sco_id] = $info[
'completed'][$sco_id] ? $info[
'completed'][$sco_id] : array();
174 $status_info[
'failed'][$sco_id] = $info[
'failed'][$sco_id] ? $info[
'failed'][$sco_id] : array();
175 $status_info[
'in_progress'][$sco_id] = $info[
'in_progress'][$sco_id] ? $info[
'in_progress'][$sco_id] : array();
197 include_once(
"./Services/Tracking/classes/class.ilChangeEvent.php");
204 include_once
'./Services/Tracking/classes/class.ilLPCollectionCache.php';
205 include_once
'./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
215 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php");
220 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Tracking.php");
225 switch ($scorm_status)
252 include_once
'./Services/Tracking/classes/class.ilLPCollectionCache.php';
254 $reqscos = count($scos);
256 include_once
'./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php';
259 if ($subtype !=
"scorm2004")
261 include_once(
"./Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php");
266 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Tracking.php");
272 $per = min(100, 100 / $reqscos * $compl);