16 public static function isCompleted($a_cont_oid, $a_test_rid, $a_objective_id, $max_points, $reached,$limit_perc)
18 include_once
'./Modules/Course/classes/Objectives/class.ilLOSettings.php';
29 return ($reached / $max_points * 100) >= $limit_perc;
40 return ($reached / $max_points * 100) >= $limit_perc;
53 include_once
'./Modules/Course/classes/Objectives/class.ilLOSettings.php';
58 $tst_ref_id = $settings->getQualifiedTest();
62 $tst_ref_id = $settings->getInitialTest();
66 include_once
'./Modules/Course/classes/Objectives/class.ilLORandomTestQuestionPools.php';
71 include_once
'./Modules/Course/classes/class.ilCourseObjectiveQuestion.php';
86 include_once
'./Modules/Course/classes/Objectives/class.ilLOSettings.php';
88 if($settings->isGeneralQualifiedTestVisible())
92 include_once
'./Modules/Course/classes/class.ilCourseObjective.php';
95 return (
int) $max_passes;
106 include_once
'./Modules/Test/classes/class.ilObjTest.php';
127 include_once
'./Modules/Test/classes/class.ilTestRandomQuestionSetSourcePoolDefinitionList.php';
128 include_once
'./Modules/Test/classes/class.ilTestRandomQuestionSetSourcePoolDefinitionFactory.php';
138 $list->loadDefinitions();
140 include_once
'./Modules/Test/classes/class.ilTestTaxonomyFilterLabelTranslater.php';
142 $translator->loadLabels($list);
145 foreach ($list as $definition)
147 if($definition->getId() != $a_sequence_id)
171 $title .= (
' -> ' .$trans->getTaxonomyNodeLabel($tax_node));
176 public static function hasActiveRun($a_container_id, $a_test_ref_id, $a_objective_id)
179 include_once
'./Modules/Test/classes/class.ilObjTest.php';
190 include_once
'./Modules/Course/classes/Objectives/class.ilLOTestRun.php';
197 if(count((array) $last_objectives) and in_array((
int) $a_objective_id, (array) $last_objectives))