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->getParticipants();
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->getParticipants();
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->getParticipants();
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->getParticipants();
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->getParticipants(),(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->getParticipants(),(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->getParticipants();
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->getParticipants();
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)