19 declare(strict_types=1);
    47         if (!$this->
object->getEnableExamview()) {
    51         switch ($this->
ctrl->getNextClass($this)) {
    62         switch ($this->
ctrl->getCmd()) {
    77         if ($this->
object->getKioskMode()) {
    80             $this->tpl->hideFooter();
    95         $back_url = $this->
ctrl->getLinkTarget(
    96             $this->test_player_gui,
    97             $this->
object->getListOfQuestionsEnd() ?
   102             $this->ui_factory->button()->standard($this->
lng->txt(
'tst_resume_test'), $back_url)
   105         if ($this->finish_test_modal === null) {
   106             $class = get_class($this->test_player_gui);
   107             $this->
ctrl->setParameterByClass($class, 
'reviewed', 1);
   108             $this->finish_test_modal = $this->test_player_gui->buildFinishTestModal();
   109             $this->
ctrl->setParameterByClass($class, 
'reviewed', 0);
   113             $this->ui_factory->button()->primary($this->
lng->txt(
'finish_test'), $this->finish_test_modal->getShowSignal())
   121         $testResultHeaderLabelBuilder = 
new ResultsTitlesBuilder($this->
lng, $this->obj_cache);
   123         $objectivesList = null;
   126             $testSequence = $this->test_sequence_factory->getSequenceByActiveIdAndPass($this->testSession->getActiveId(), $this->testSession->getPass());
   127             $testSequence->loadFromDb();
   128             $testSequence->loadQuestions();
   133             $objectivesList->loadObjectivesTitles();
   135             $testResultHeaderLabelBuilder->setObjectiveOrientedContainerId($this->testSession->getObjectiveOrientedContainerId());
   136             $testResultHeaderLabelBuilder->setUserId($this->testSession->getUserId());
   137             $testResultHeaderLabelBuilder->setTestObjId($this->
object->getId());
   138             $testResultHeaderLabelBuilder->setTestRefId($this->
object->getRefId());
   139             $testResultHeaderLabelBuilder->initObjectiveOrientedMode();
   142         $results = $this->
object->getTestResult(
   143             $this->testSession->getActiveId(),
   144             $this->testSession->getPass(),
   150         $testevaluationgui->setContextResultPresentation(
false);
   152         $results_output = $testevaluationgui->getPassListOfAnswers(
   154             $this->testSession->getActiveId(),
   155             $this->testSession->getPass(),
   162             $testResultHeaderLabelBuilder
   165         return $results_output;
   168     protected function show(): void
   170         $this->global_screen->tool()->context()->current()->getAdditionalData()->replace(
   172             $this->
object->getTitle() . 
' - ' . $this->
lng->txt(
'tst_results_overview')
   176         if ($this->
object->getEnableProcessingTime()) {
   177             $active_id = $this->testSession->getActiveId();
   178             $starting_time = $this->
object->getStartingTimeOfUser($active_id);
   184                 $this->
object->getProcessingTimeInSeconds($active_id)
   189             $class = $this->
getObject()->isFixedTest()
   190                 ? ilTestPlayerFixedQuestionSetGUI::class
   191                 : ilTestPlayerRandomQuestionSetGUI::class;
   193             $working_time_js_template = $working_time->prepareWorkingTimeJsTemplate(
   195                 getdate($starting_time),
   196                 $this->
ctrl->getLinkTargetByClass($class, 
'checkWorkingTime', 
'', 
true),
   200             $this->tpl->addOnLoadCode($working_time_js_template->get());
   203         $html .= $this->
buildToolbar(
'review_nav_top')->getHTML();
   205         $html .= $this->
buildToolbar(
'review_nav_bottom')->getHTML();
   207         if ($this->
object->isShowExamIdInTestPassEnabled() && !$this->
object->getKioskMode()) {
   208             $examIdTpl = 
new ilTemplate(
'tpl.exam_id_block.html', 
true, 
true, 
'components/ILIAS/Test');
   210                 $this->testSession->getActiveId(),
   211                 $this->testSession->getPass(),
   213             $examIdTpl->setVariable(
'EXAM_ID_TXT', $this->
lng->txt(
'exam_id'));
   214             $html .= $examIdTpl->get();
   217         $html .= $this->ui_renderer->render($this->finish_test_modal);
 
getObjectiveOrientedContainer()
 
const BACK_FROM_FINISHING
 
InterruptiveModal $finish_test_modal
 
getContentBlockName()
Returns the name of the current content block (depends on the kiosk mode setting) ...
 
getMessageBox(bool $verbose)
 
static getInstance(ilTestSession $a_test_session)
 
__construct(protected ilTestPlayerAbstractGUI $test_player_gui, ilObjTest $testOBJ, protected ilTestSession $testSession)
 
Output class for assessment test evaluation. 
 
const REDIRECT_AFTER_QUESTION_LIST
 
const TEST_PLAYER_VIEW_TITLE
 
buildQuestionRelatedObjectivesList(ilLOTestQuestionAdapter $objectives_adapter, ilTestQuestionSequence $test_sequence)
 
__construct(Container $dic, ilPlugin $plugin)
 
Service GUI class for tests. 
 
readonly ilToolbarGUI $toolbar
 
static lookupExamId($active_id, $pass)