19declare(strict_types=1);
31 protected \ILIAS\Exercise\Assignment\AssignmentManager
$ass_manager;
33 protected \ILIAS\DI\UIServices
$ui;
49 $this->
ctrl = $gui_service->ctrl();
52 $this->
user = $domain_service->user();
62 $this->
ctrl->saveParameter($this,
"ass_id");
63 $this->
ui = $gui_service->ui();
64 $this->
tabs = $gui_service->tabs();
65 $this->
lng = $domain_service->lng();
76 switch ($next_class) {
78 case "ilexsubmissiongui":
80 $random_manager = $this->domain_service->assignment()->randomAssignments($this->exc);
81 if (!$random_manager->isAssignmentVisible($this->ass_id, $this->user->getId())) {
85 $this->
tabs->activateTab(
"submission");
86 $sub_gui = $this->gui_service->getSubmissionGUI();
87 $this->
ctrl->forwardCommand($sub_gui);
91 $this->
ctrl->setParameterByClass(ilObjExerciseGUI::class,
"from_overview",
null);
92 if (in_array($cmd, [
"showAssignment"])) {
101 $this->
tabs->activateTab(
"ass");
102 $r = $this->
ui->renderer();
103 $ass = $this->ass_manager->get($this->ass_id);
104 $panel = $this->panel_builder->getPanel($ass, $this->
user->getId());
105 $this->main_tpl->setContent($r->render($panel));
110 $this->
tabs->setBackTarget(
111 $this->
lng->txt(
"exc_assignment_list"),
112 $this->ctrl->getLinkTargetByClass(ilObjExerciseGUI::class,
"showOverview")
114 $ass = $this->ass_manager->get($this->ass_id);
115 foreach ($this->panel_builder->getPanelViews($ass, $this->user->getId()) as $view) {
Exercise UI frontend presentation service class.
request(?array $query_params=null, ?array $post_data=null)
Get request wrapper.
@ilCtrl_Calls ilAssignmentPresentationGUI: ilExSubmissionGUI
__construct(ilObjExercise $exc, InternalDomainService $domain_service, InternalGUIService $gui_service)
InternalGUIService $gui_service
ilGlobalTemplateInterface $main_tpl
InternalDomainService $domain_service
ILIAS Exercise Assignment PanelBuilderUI $panel_builder
ILIAS Exercise Assignment AssignmentManager $ass_manager
Class ilCtrl provides processing control methods.
getNextClass($a_gui_class=null)
@inheritDoc
getCmd(?string $fallback_command=null)
@inheritDoc
setReturn(object $a_gui_obj, ?string $a_cmd=null)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...