69 $this->objectiveOrientedContainerId = null;
70 $this->testObjId = null;
71 $this->testRefId = null;
74 $this->testType = null;
75 $this->crsTitle = null;
77 $this->objectives =
array();
153 require_once
'Modules/Course/classes/Objectives/class.ilLOSettings.php';
156 if( $loSettings->getInitialTest() == $this->
getTestRefId() )
158 $this->testType = self::LO_TEST_TYPE_INITIAL;
160 elseif( $loSettings->getQualifiedTest() == $this->
getTestRefId() )
162 $this->testType = self::LO_TEST_TYPE_QUALIFYING;
168 require_once
'Modules/Course/classes/Objectives/class.ilLOTestRun.php';
171 $this->objectives =
array();
173 foreach( $loRuns as $loRun )
193 return $this->lng->txt(
'tst_results_overview');
199 $this->lng->txt(
'tst_pass_overview_header_lo_initial_all_objectives'),
$this->crsTitle 205 $this->lng->txt(
'tst_pass_overview_header_lo_initial_per_objective'),
212 $this->lng->txt(
'tst_pass_overview_header_lo_qualifying_all_objectives'),
$this->crsTitle 218 $this->lng->txt(
'tst_pass_overview_header_lo_qualifying_per_objective'),
234 $this->lng->txt(
'tst_pass_details_overview_table_title'), $attemptNumber
241 $this->lng->txt(
'tst_pass_details_header_lo_initial'),
248 $this->lng->txt(
'tst_pass_details_header_lo_qualifying'),
258 return $this->testType == self::LO_TEST_TYPE_INITIAL;
263 return $this->testType == self::LO_TEST_TYPE_QUALIFYING;
268 if( $this->testType != self::LO_TEST_TYPE_INITIAL )
273 if( count($this->objectives) <= 1 )
283 if( $this->testType != self::LO_TEST_TYPE_INITIAL )
288 if( count($this->objectives) > 1 )
298 if( $this->testType != self::LO_TEST_TYPE_QUALIFYING )
303 if( count($this->objectives) <= 1 )
313 if( $this->testType != self::LO_TEST_TYPE_QUALIFYING )
318 if( count($this->objectives) > 1 )
328 require_once
'Modules/Course/classes/class.ilCourseObjective.php';
334 return implode(
', ', $this->objectives);
339 return sprintf($this->lng->txt(
'tst_res_lo_try_n'), $attemptNumber);
344 $langVar =
'tst_eval_results_by_pass';
348 $langVar =
'tst_eval_results_by_pass_lo';
351 return sprintf($this->lng->txt($langVar), $attemptNumber);
356 return $this->lng->txt(
'tst_eval_results_lo');
364 $this->lng->txt(
'tst_virtual_pass_header_lo_initial'), $objectiveTitle
370 $this->lng->txt(
'tst_virtual_pass_header_lo_qualifying'), $objectiveTitle
static getInstanceByObjId($a_obj_id)
get singleton instance
static lookupObjectiveTitle($a_objective_id, $a_add_description=false)
static getRun($a_container_id, $a_user_id, $a_test_id)
Create styles array
The data for the language used.
Stores current objective, questions and max points.