ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMyTestResultsGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
23
38{
39 private const EVALGUI_CMD_SHOW_PASS_OVERVIEW = 'outUserResultsOverview';
40
41 public function __construct(
42 private readonly ?ilObjTest $test_obj,
43 private readonly ilTestAccess $test_access,
44 private readonly ilTestObjectiveOrientedContainer $objective_parent,
45 private readonly ilObjUser $user,
46 private readonly ilLanguage $lng,
47 private readonly ilCtrlInterface $ctrl,
48 private readonly ilGlobalTemplateInterface $tpl,
49 private readonly GeneralQuestionPropertiesRepository $questionrepository,
50 private readonly RequestDataCollector $testrequest
51 ) {
52 }
53
54 public function executeCommand(): void
55 {
56 switch ($this->ctrl->getNextClass()) {
57 case "iltestevaluationgui":
58 $gui = new ilTestEvaluationGUI($this->test_obj);
59 $gui->setObjectiveOrientedContainer($this->objective_parent);
60 $gui->setTestAccess($this->test_access);
61 if ($this->ctrl->getCmd() === '') {
62 $gui->{self::EVALGUI_CMD_SHOW_PASS_OVERVIEW}();
63 break;
64 }
65 $this->ctrl->forwardCommand($gui);
66 break;
67
68 case 'ilassquestionpagegui':
69 $forwarder = new ilAssQuestionPageCommandForwarder(
70 $this->test_obj,
71 $this->lng,
72 $this->ctrl,
73 $this->tpl,
74 $this->questionrepository,
75 $this->testrequest,
76 $this->user->getId()
77 );
78 $forwarder->forward();
79 break;
80 }
81 }
82}
language handling
__construct(private readonly ?ilObjTest $test_obj, private readonly ilTestAccess $test_access, private readonly ilTestObjectiveOrientedContainer $objective_parent, private readonly ilObjUser $user, private readonly ilLanguage $lng, private readonly ilCtrlInterface $ctrl, private readonly ilGlobalTemplateInterface $tpl, private readonly GeneralQuestionPropertiesRepository $questionrepository, private readonly RequestDataCollector $testrequest)
User class.
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