56 $ilCtrl = $DIC->ctrl();
57 $ilTabs = $DIC->tabs();
58 $lng = $DIC->language();
61 $this->exercise = $a_exercise;
62 $this->submission = $a_submission;
65 $this->mandatory_manager = $DIC
70 ->mandatoryAssignments($this->exercise);
72 $this->request = $DIC->exercise()->internal()->gui()->request();
73 $this->requested_ref_id = $this->request->getRefId();
76 $this->
ctrl = $ilCtrl;
77 $this->tabs_gui = $ilTabs;
82 $this->tool_context = $DIC->globalScreen()->tool()->context();
92 $this->tabs_gui->clearTargets();
93 $this->tabs_gui->setBackTarget(
94 $this->
lng->txt(
"back"),
95 $this->
ctrl->getLinkTarget($this,
"returnToParent")
98 $this->tabs_gui->addTab(
100 $this->
lng->txt(
"exc_submission"),
101 $this->
ctrl->getLinkTarget($this,
"")
103 $this->tabs_gui->activateTab(
"submission");
105 if ($this->assignment->hasTeam()) {
112 $this->
ctrl->returnToParent($this);
121 bool $a_no_notifications =
false 123 $has_submitted = $this->submission->hasSubmitted();
125 $this->exercise->processExerciseStatus(
127 $this->submission->getUserIds(),
129 $this->submission->validatePeerReviews()
132 if ($has_submitted &&
133 !$a_no_notifications) {
138 $not->setAssignmentId($this->assignment->getId());
139 $not->setRefId($this->exercise->getRefId());
140 $not->setRecipients($users);
153 $ass_ids = [$this->assignment->getId()];
static getOverviewContent(ilInfoScreenGUI $a_info, ilExSubmission $a_submission)
handleNewUpload(bool $a_no_notifications=false)
const TYPE_SUBMISSION_UPLOAD
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Exercise submission base gui.
static getInstance()
Get instance.
ContextServices $tool_context
static getNotificationsForObject(int $type, int $id, ?int $page_id=null, bool $ignore_threshold=false)
Get all users/recipients for given object.
ilGlobalTemplateInterface $tpl
MandatoryAssignmentsManager $mandatory_manager
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const TYPE_EXERCISE_SUBMISSION
__construct(Container $dic, ilPlugin $plugin)
ilExAssignmentTypesGUI $type_guis
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Manages random mandatory assignments of an exercise.
ilExSubmission $submission
Exercise gui request wrapper.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilExAssignment $assignment
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...