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