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))
98 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManual_inProgress');
102 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManual_inProgress');
106 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManual_inProgress');
110 $ilBench->stop(
'LearningProgress',
'9162_LPStatusManual_inProgress');
111 echo
"ilLPStatusManual: unknown type ".$ilObjDataCache->lookupType($a_obj_id);
122 $ilBench->start(
'LearningProgress',
'9163_LPStatusManual_completed');
124 $query =
"SELECT DISTINCT(usr_id) as user_id FROM ut_lp_marks ".
125 "WHERE obj_id = '".$a_obj_id.
"' ".
126 "AND completed = '1'";
128 $res = $ilDB->query($query);
131 $usr_ids[] = $row->user_id;
133 $ilBench->stop(
'LearningProgress',
'9163_LPStatusManual_completed');
134 return $usr_ids ? $usr_ids : array();
143 $query =
"SELECT DISTINCT(usr_id) FROM read_event ".
144 "WHERE obj_id = '".$a_obj_id.
"'";
146 $res = $ilDB->query($query);
149 if(!in_array($row->usr_id,$completed))
151 $user_ids[] = $row->usr_id;
154 return $user_ids ? $user_ids : array();
163 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
165 $members = $members_obj->getParticipants();
167 $query =
"SELECT DISTINCT(usr_id) FROM read_event ".
168 "WHERE obj_id = '".$a_obj_id.
"'";
170 $res = $ilDB->query($query);
173 if(!in_array($row->usr_id,$completed) and in_array($row->usr_id,$members))
175 $user_ids[] = $row->usr_id;
178 return $user_ids ? $user_ids : array();
187 include_once
'./Modules/Group/classes/class.ilObjGroup.php';
190 $query =
"SELECT DISTINCT(usr_id) FROM read_event ".
191 "WHERE obj_id = '".$a_obj_id.
"'";
193 $res = $ilDB->query($query);
196 if(!in_array($row->user_id,$completed) and in_array($row->user_id,$members))
198 $user_ids[] = $row->user_id;
201 return $user_ids ? $user_ids : array();