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();
92 $ilBench->start(
'LearningProgress',
'9173_LPStatusObjectives_completed');
95 foreach($status_info[
'objective_result'] as $user_id => $completed)
97 if(count($completed) == $status_info[
'num_objectives'])
99 $usr_ids[] = $user_id;
102 $ilBench->stop(
'LearningProgress',
'9173_LPStatusObjectives_completed');
103 return $usr_ids ? $usr_ids : array();
109 include_once
'Modules/Course/classes/class.ilCourseObjective.php';
113 $status_info[
'objective_result'] = array();
115 $status_info[
'num_objectives'] = count($status_info[
'objectives']);
117 if(!$status_info[
'num_objectives'])
123 $in = $ilDB->in(
'objective_id',$status_info[
'objectives'],
false,
'integer');
126 $query =
"SELECT * FROM crs_objective_status ".
132 $status_info[
'completed'][
$row->objective_id][] =
$row->user_id;
133 $status_info[
'objective_result'][
$row->user_id][
$row->objective_id] =
$row->objective_id;
137 $query =
"SELECT * FROM crs_objectives ".
142 $status_info[
'objective_title'][
$row->objective_id] =
$row->title;
143 $status_info[
'objective_description'][
$row->objective_id] =
$row->description;