33 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
34 include_once
'./Services/Tracking/classes/class.ilLPStatusWrapper.php';
49 global $ilObjDataCache,$tree;
51 switch($ilObjDataCache->lookupType($a_obj_id))
54 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
56 $members = $member_obj->getMembers();
65 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
76 $folder_ref_id = current($folder_ref_ids);
77 if($crs_id = $tree->checkForParentType($folder_ref_id,
'crs'))
79 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
81 $members = $member_obj->getMembers();
100 include_once
'./Services/Tracking/classes/class.ilLPCollectionCache.php';
103 $ilBench->start(
'LearningProgress',
'9172_LPStatusCollection_inProgress');
108 $item_id = $ilObjDataCache->lookupObjId($item_id);
120 switch($ilObjDataCache->lookupType($a_obj_id))
124 include_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
126 $members = $members_obj->getMembers();
127 $users = array_intersect($members,(array) $users);
131 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
133 $users = array_intersect($members,(array) $users);
138 $folder_ref_id = current($folder_ref_ids);
139 if($crs_id = $tree->checkForParentType($folder_ref_id,
'crs'))
141 include_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
143 $members = $members_obj->getMembers();
144 $users = array_intersect($members,(array) $users);
149 $ilBench->stop(
'LearningProgress',
'9172_LPStatusCollection_inProgress');
155 include_once
'./Services/Tracking/classes/class.ilLPCollectionCache.php';
157 global
$ilBench,$ilObjDataCache,$tree;
158 $ilBench->start(
'LearningProgress',
'9173_LPStatusCollection_completed');
164 $item_id = $ilObjDataCache->lookupObjId($item_id);
173 $users = array_intersect($users,$tmp_users);
178 switch($ilObjDataCache->lookupType($a_obj_id))
182 include_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
184 $users = array_intersect($member_obj->getMembers(),(array) $users);
188 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
190 $users = array_intersect($members,(array) $users);
195 $folder_ref_id = current($folder_ref_ids);
196 if($crs_id = $tree->checkForParentType($folder_ref_id,
'crs'))
198 include_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
200 $users = array_intersect($members_obj->getMembers(),(array) $users);
206 $ilBench->stop(
'LearningProgress',
'9173_LPStatusCollection_completed');
207 return (array) $users;
212 global $ilObjDataCache,$tree;
214 include_once
'./Services/Tracking/classes/class.ilLPCollectionCache.php';
219 $item_id = $ilObjDataCache->lookupObjId($item_id);
221 $users = array_merge($users,$tmp_users);
224 switch($ilObjDataCache->lookupType($a_obj_id))
228 include_once
'./Modules/Course/classes/class.ilCourseParticipants.php';
230 $members = $members_obj->getMembers();
232 $users = array_intersect($members,(array) $users);
236 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
238 $users = array_intersect($members,(array) $users);
243 $folder_ref_id = current($folder_ref_ids);
244 if($crs_id = $tree->checkForParentType($folder_ref_id,
'crs'))
247 $members = $members_obj->getMembers();
248 $users = array_intersect($members,(array) $users);
253 return array_unique($users);
259 include_once
'./Services/Tracking/classes/class.ilLPCollectionCache.php';
262 $status_info[
'num_collections'] = count($status_info[
'collections']);
268 global $ilObjDataCache;
270 if($ilObjDataCache->lookupType($a_obj_id) ==
'sahs')
276 foreach($status_info[
'collections'] as $item)
293 global $ilObjDataCache,
$ilDB;
296 switch ($ilObjDataCache->lookupType($a_obj_id))
301 include_once
"./Services/Tracking/classes/class.ilChangeEvent.php";
309 include_once(
"./Services/Tracking/classes/class.ilLPCollectionCache.php");
312 $item_id = $ilObjDataCache->lookupObjId($item_id);