33 include_once
'Services/Tracking/classes/class.ilLPStatus.php';
62 global $ilObjDataCache;
65 $ilBench->start(
'LearningProgress',
'9161_LPStatusManual_notAttempted');
67 switch($ilObjDataCache->lookupType($a_obj_id))
71 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
73 $members = $members_obj->getMembers();
79 $ilBench->stop(
'LearningProgress',
'9161_LPStatusManual_notAttempted');
84 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
91 $ilBench->stop(
'LearningProgress',
'9161_LPStatusManual_notAttempted');
95 $ilBench->stop(
'LearningProgress',
'9161_LPStatusManual_notAttempted');
110 global $ilObjDataCache;
113 $ilBench->start(
'LearningProgress',
'9162_LPStatusManualByTutor_inProgress');
116 switch($ilObjDataCache->lookupType($a_obj_id))
119 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManualByTutor_inProgress');
123 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManualByTutor_inProgress');
127 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManualByTutor_inProgress');
141 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
143 $members = $members_obj->getMembers();
145 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
147 foreach($all as $user_id)
149 if(!in_array($user_id,$completed) and in_array($user_id,$members))
151 $user_ids[] = $user_id;
154 return $user_ids ? $user_ids : array();
163 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
166 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
168 foreach($all as $user_id)
170 if(!in_array($user_id,$completed) and in_array($user_id,$members))
172 $user_ids[] = $user_id;
175 return $user_ids ? $user_ids : array();
183 $ilBench->start(
'LearningProgress',
'9163_LPStatusManualByTutor_completed');
185 $query =
"SELECT DISTINCT(usr_id) user_id FROM ut_lp_marks ".
186 "WHERE obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
187 "AND completed = '1' ";
192 $usr_ids[] =
$row->user_id;
194 $ilBench->stop(
'LearningProgress',
'9163_LPStatusManualByTutor_completed');
195 return $usr_ids ? $usr_ids : array();
208 global $ilObjDataCache,
$ilDB;
211 switch ($ilObjDataCache->lookupType($a_obj_id))
216 $set = $ilDB->query($q =
"SELECT usr_id FROM ut_lp_marks ".
217 "WHERE obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
218 "AND usr_id = ".$ilDB->quote($a_user_id ,
'integer').
" ".
219 "AND completed = '1' ");
220 if ($rec = $ilDB->fetchAssoc($set))
226 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';