33 include_once
'Services/Tracking/classes/class.ilLPStatus.php';
48 global $ilObjDataCache;
51 $ilBench->start(
'LearningProgress',
'9161_LPStatusManual_notAttempted');
53 switch($ilObjDataCache->lookupType($a_obj_id))
57 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
59 $members = $members_obj->getParticipants();
65 $ilBench->stop(
'LearningProgress',
'9161_LPStatusManual_notAttempted');
70 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
77 $ilBench->stop(
'LearningProgress',
'9161_LPStatusManual_notAttempted');
81 $ilBench->stop(
'LearningProgress',
'9161_LPStatusManual_notAttempted');
88 global $ilObjDataCache;
91 $ilBench->start(
'LearningProgress',
'9162_LPStatusManual_inProgress');
94 switch($ilObjDataCache->lookupType($a_obj_id))
99 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManual_inProgress');
103 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManual_inProgress');
107 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManual_inProgress');
111 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManual_inProgress');
112 echo
"ilLPStatusManual: unknown type ".$ilObjDataCache->lookupType($a_obj_id);
123 $ilBench->start(
'LearningProgress',
'9163_LPStatusManual_completed');
125 $query =
"SELECT DISTINCT(usr_id) user_id FROM ut_lp_marks ".
126 "WHERE obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
127 "AND completed = '1' ";
132 $usr_ids[] =
$row->user_id;
134 $ilBench->stop(
'LearningProgress',
'9163_LPStatusManual_completed');
135 return $usr_ids ? $usr_ids : array();
145 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
147 foreach($all as $user_id)
149 if(!in_array($user_id,$completed))
151 $user_ids[] = $user_id;
154 return $user_ids ? $user_ids : array();
163 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
165 $members = $members_obj->getParticipants();
167 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
169 foreach($all as $user_id)
171 if(!in_array($user_id,$completed) and in_array($user_id,$members))
173 $user_ids[] = $user_id;
176 return $user_ids ? $user_ids : array();
185 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
188 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
190 foreach($all as $user_id)
192 if(!in_array($user_id,$completed) and in_array($user_id,$members))
194 $user_ids[] = $user_id;
197 return $user_ids ? $user_ids : array();