33 include_once
'Services/Tracking/classes/class.ilLPStatus.php';
48 global $ilObjDataCache;
51 $ilBench->start(
'LearningProgress',
'9171_LPStatusObjectives_notAttempted');
53 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
55 $members = $members_obj->getParticipants();
61 $ilBench->stop(
'LearningProgress',
'9171_LPStatusObjectives_notAttempted');
62 return $users ? $users : array();
71 include_once
'Modules/Course/classes/class.ilCourseParticipants.php';
73 $members = $members_obj->getParticipants();
75 include_once
'./Services/Tracking/classes/class.ilChangeEvent.php';
77 foreach($all as $user_id)
79 if(!in_array($user_id,$completed) and in_array($user_id,$members))
81 $user_ids[] = $user_id;
84 return $user_ids ? $user_ids : array();
94 foreach($status_info[
'objective_result'] as $user_id => $completed)
96 if(count($completed) == $status_info[
'num_objectives'])
98 $usr_ids[] = $user_id;
101 return $usr_ids ? $usr_ids : array();
107 include_once
'Modules/Course/classes/class.ilCourseObjective.php';
111 $status_info[
'objective_result'] = array();
113 $status_info[
'num_objectives'] = count($status_info[
'objectives']);
115 if(!$status_info[
'num_objectives'])
121 $in = $ilDB->in(
'objective_id',$status_info[
'objectives'],
false,
'integer');
124 $query =
"SELECT * FROM crs_objective_status ".
130 $status_info[
'completed'][
$row->objective_id][] =
$row->user_id;
131 $status_info[
'objective_result'][
$row->user_id][
$row->objective_id] =
$row->objective_id;
135 $query =
"SELECT * FROM crs_objectives ".
140 $status_info[
'objective_title'][
$row->objective_id] =
$row->title;
141 $status_info[
'objective_description'][
$row->objective_id] =
$row->description;
156 global $ilObjDataCache,
$ilDB;
169 switch ($ilObjDataCache->lookupType($a_obj_id))
176 include_once
'Modules/Course/classes/class.ilCourseObjective.php';
180 $set = $ilDB->query(
"SELECT count(objective_id) cnt FROM crs_objective_status ".
181 "WHERE ".$ilDB->in(
'objective_id',$objectives,
false,
'integer').
182 " AND user_id = ".$ilDB->quote($a_user_id,
"integer"));
183 if ($rec = $ilDB->fetchAssoc($set))
185 if ($rec[
"cnt"] == count($objectives))