33 include_once
'./Services/Tracking/classes/class.ilLPStatus.php';
51 $ilBench->start(
'LearningProgress',
'9182_LPStatusTestPassed_inProgress');
54 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';
56 $query =
"SELECT DISTINCT(user_fi) FROM tst_active ".
57 "WHERE test_fi = '".ilObjTestAccess::_getTestIDFromObjectID($a_obj_id).
"'";
62 $user_ids[] =
$row->user_fi;
68 $ilBench->stop(
'LearningProgress',
'9182_LPStatusTestPassed_inProgress');
69 return $users ? $users : array();
77 $ilBench->start(
'LearningProgress',
'9183_LPStatusTestPassed_completed');
79 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';
80 include_once
'./Services/Tracking/classes/class.ilTestResultCache.php';
83 foreach($status_info[
'results'] as $user_data)
85 if($user_data[
'passed'])
87 $user_ids[] = $user_data[
'user_id'];
90 $ilBench->stop(
'LearningProgress',
'9183_LPStatusTestPassed_completed');
91 return $user_ids ? $user_ids : array();
97 foreach($status_info[
'results'] as $user_data)
99 if($user_data[
'failed'])
101 $user_ids[] = $user_data[
'user_id'];
104 return $user_ids ? $user_ids : array();
109 include_once
'./Modules/Test/classes/class.ilObjTestAccess.php';