19 declare(strict_types=1);
85 $this->objectiveOrientedContainerId = null;
86 $this->testObjId = null;
87 $this->testRefId = null;
90 $this->testType = null;
91 $this->crsTitle = null;
93 $this->objectives = array();
171 if ($loSettings->getInitialTest() == $this->
getTestRefId()) {
172 $this->testType = self::LO_TEST_TYPE_INITIAL;
173 } elseif ($loSettings->getQualifiedTest() == $this->
getTestRefId()) {
174 $this->testType = self::LO_TEST_TYPE_QUALIFYING;
182 $this->objectives = array();
184 foreach ($loRuns as $loRun) {
202 return $this->
lng->txt(
'tst_results_overview');
207 $this->
lng->txt(
'tst_pass_overview_header_lo_initial_all_objectives'),
212 $this->
lng->txt(
'tst_pass_overview_header_lo_initial_per_objective'),
218 $this->
lng->txt(
'tst_pass_overview_header_lo_qualifying_all_objectives'),
223 $this->
lng->txt(
'tst_pass_overview_header_lo_qualifying_per_objective'),
239 $this->
lng->txt(
'tst_pass_details_overview_table_title'),
246 $this->
lng->txt(
'tst_pass_details_header_lo_initial'),
252 $this->
lng->txt(
'tst_pass_details_header_lo_qualifying'),
263 return $this->testType == self::LO_TEST_TYPE_INITIAL;
268 return $this->testType == self::LO_TEST_TYPE_QUALIFYING;
273 if ($this->testType != self::LO_TEST_TYPE_INITIAL) {
277 if (count($this->objectives) <= 1) {
286 if ($this->testType != self::LO_TEST_TYPE_INITIAL) {
290 if (count($this->objectives) > 1) {
299 if ($this->testType != self::LO_TEST_TYPE_QUALIFYING) {
303 if (count($this->objectives) <= 1) {
312 if ($this->testType != self::LO_TEST_TYPE_QUALIFYING) {
316 if (count($this->objectives) > 1) {
330 return implode(
', ', $this->objectives);
335 return sprintf($this->
lng->txt(
'tst_res_lo_try_n'), $attemptNumber);
340 $langVar =
'tst_eval_results_by_pass';
343 $langVar =
'tst_eval_results_by_pass_lo';
346 return sprintf($this->
lng->txt($langVar), $attemptNumber);
351 return $this->
lng->txt(
'tst_eval_results_lo');
358 $this->
lng->txt(
'tst_virtual_pass_header_lo_initial'),
363 $this->
lng->txt(
'tst_virtual_pass_header_lo_qualifying'),
static lookupObjectiveTitle(int $a_objective_id, bool $a_add_description=false)
static getInstanceByObjId(int $a_obj_id)
static getRun(int $a_container_id, int $a_user_id, int $a_test_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...