33 protected \ILIAS\Exercise\Notification\NotificationManager
$notification;
34 protected \ILIAS\Exercise\InternalDomainService
$domain;
35 protected \ILIAS\Exercise\InternalGUIService
$gui;
59 $service = $DIC->exercise()->internal();
63 $this->
user = $this->domain->user();
64 $this->
ctrl = $this->gui->ctrl();
65 $this->tabs_gui = $this->gui->tabs();
66 $this->
lng = $this->domain->lng();
67 $this->tpl = $this->gui->ui()->mainTemplate();
69 $this->exercise = $a_exercise;
70 $this->submission = $a_submission;
73 $this->mandatory_manager = $this->domain
75 ->mandatoryAssignments($this->exercise);
77 $this->request = $this->gui->request();
78 $this->requested_ref_id = $this->request->getRefId();
79 $this->
notification = $this->domain->notification($this->requested_ref_id);
81 $this->type_guis = $this->gui->assignment()->types();
82 $this->tool_context = $DIC->globalScreen()->tool()->context();
83 $this->gui = $DIC->exercise()
96 $this->tabs_gui->clearTargets();
97 $this->tabs_gui->setBackTarget(
98 $this->
lng->txt(
"back"),
99 $this->
ctrl->getLinkTarget($this,
"returnToParent")
102 $this->tabs_gui->addTab(
104 $this->
lng->txt(
"exc_submission"),
105 $this->
ctrl->getLinkTarget($this,
"")
107 $this->tabs_gui->activateTab(
"submission");
109 if ($this->assignment->hasTeam()) {
116 if ($this->request->getFromOverview()) {
117 $this->
ctrl->redirectByClass(ilObjExerciseGUI::class,
"showOverview");
119 $this->
ctrl->returnToParent($this);
128 bool $a_no_notifications =
false 130 $has_submitted = $this->submission->hasSubmitted();
132 $this->exercise->processExerciseStatus(
134 $this->submission->getUserIds(),
136 $this->submission->validatePeerReviews()
139 if ($has_submitted &&
140 !$a_no_notifications) {
141 $this->
notification->sendUploadNotification($this->assignment->getId());
153 $ass_ids = [$this->assignment->getId()];
static getOverviewContent(ilInfoScreenGUI $a_info, ilExSubmission $a_submission)
handleNewUpload(bool $a_no_notifications=false)
ILIAS Exercise InternalGUIService $gui
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Exercise submission base gui.
ContextServices $tool_context
ilGlobalTemplateInterface $tpl
notification()
description: > Example for rendring a notification glyph.
MandatoryAssignmentsManager $mandatory_manager
ILIAS Exercise Notification NotificationManager $notification
ilExAssignmentTypesGUI $type_guis
Exercise submission //TODO: This class has many static methods related to delivered "files"...
Manages random mandatory assignments of an exercise.
ILIAS Exercise InternalDomainService $domain
ilExSubmission $submission
Exercise gui request wrapper.
ilExAssignment $assignment
__construct(ilObjExercise $a_exercise, ilExSubmission $a_submission)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...