4 include_once
'Services/Tracking/classes/class.ilLPStatus.php';
27 global $ilObjDataCache;
30 $ilBench->start(
'LearningProgress',
'9161_LPStatusManual_notAttempted');
32 switch($ilObjDataCache->lookupType($a_obj_id))
36 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
38 $members = $members_obj->getMembers();
44 $ilBench->stop(
'LearningProgress',
'9161_LPStatusManual_notAttempted');
49 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
56 $ilBench->stop(
'LearningProgress',
'9161_LPStatusManual_notAttempted');
60 $ilBench->stop(
'LearningProgress',
'9161_LPStatusManual_notAttempted');
67 global $ilObjDataCache;
70 $ilBench->start(
'LearningProgress',
'9162_LPStatusManual_inProgress');
73 switch($ilObjDataCache->lookupType($a_obj_id))
78 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManual_inProgress');
82 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManual_inProgress');
86 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManual_inProgress');
90 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManual_inProgress');
91 echo
"ilLPStatusManual: unknown type ".$ilObjDataCache->lookupType($a_obj_id);
102 $ilBench->start(
'LearningProgress',
'9163_LPStatusManual_completed');
104 $query =
"SELECT DISTINCT(usr_id) user_id FROM ut_lp_marks ".
105 "WHERE obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
106 "AND completed = '1' ";
111 $usr_ids[] =
$row->user_id;
113 $ilBench->stop(
'LearningProgress',
'9163_LPStatusManual_completed');
114 return $usr_ids ? $usr_ids : array();
124 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
126 foreach($all as $user_id)
128 if(!in_array($user_id,$completed))
130 $user_ids[] = $user_id;
133 return $user_ids ? $user_ids : array();
142 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
144 $members = $members_obj->getMembers();
146 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
148 foreach($all as $user_id)
150 if(!in_array($user_id,$completed) and in_array($user_id,$members))
152 $user_ids[] = $user_id;
155 return $user_ids ? $user_ids : array();
164 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
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();
189 global $ilObjDataCache,
$ilDB;
192 switch ($ilObjDataCache->lookupType($a_obj_id))
197 include_once(
"./Services/Tracking/classes/class.ilChangeEvent.php");
203 $set = $ilDB->query($q =
"SELECT usr_id FROM ut_lp_marks ".
204 "WHERE obj_id = ".$ilDB->quote($a_obj_id ,
'integer').
" ".
205 "AND usr_id = ".$ilDB->quote($a_user_id ,
'integer').
" ".
206 "AND completed = '1' ");
207 if ($rec = $ilDB->fetchAssoc($set))