ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
class.ilMyTestResultsGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
23
38{
39 public function __construct(
40 private readonly ?ilObjTest $test_obj,
41 private readonly ilTestAccess $test_access,
42 private readonly ilTestObjectiveOrientedContainer $objective_parent,
43 private readonly ilLanguage $lng,
44 private readonly ilCtrlInterface $ctrl,
45 private readonly ilGlobalTemplateInterface $tpl,
46 private readonly GeneralQuestionPropertiesRepository $questionrepository,
47 private readonly RequestDataCollector $testrequest
48 ) {
49 }
50
51 public function executeCommand(): void
52 {
53 switch ($this->ctrl->getNextClass()) {
54 case strtolower(ilTestEvaluationGUI::class):
55 $gui = new ilTestEvaluationGUI($this->test_obj);
56 $gui->setObjectiveOrientedContainer($this->objective_parent);
57 $gui->setTestAccess($this->test_access);
58 if ($this->ctrl->getCmd() === '') {
59 $gui->outUserResultsOverview();
60 break;
61 }
62 $this->ctrl->forwardCommand($gui);
63 break;
64
65 case strtolower(ilAssQuestionPageGUI::class):
67 $this->test_obj,
68 $this->lng,
69 $this->ctrl,
70 $this->tpl,
71 $this->questionrepository,
72 $this->testrequest
73 ))->forward();
74 break;
75 }
76 }
77}
language handling
__construct(private readonly ?ilObjTest $test_obj, private readonly ilTestAccess $test_access, private readonly ilTestObjectiveOrientedContainer $objective_parent, private readonly ilLanguage $lng, private readonly ilCtrlInterface $ctrl, private readonly ilGlobalTemplateInterface $tpl, private readonly GeneralQuestionPropertiesRepository $questionrepository, private readonly RequestDataCollector $testrequest)
Output class for assessment test evaluation.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $lng
Definition: privfeed.php:31