56 $ilCtrl =
$DIC->ctrl();
57 $ilTabs =
$DIC->tabs();
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);
148 $this->handleNewUpload();
153 $ass_ids = [$this->assignment->getId()];
Manages random mandatory assignments of an exercise.
Exercise gui request wrapper.
Class ilCtrl provides processing control methods.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstance()
Get instance.
Exercise submission base gui.
ContextServices $tool_context
ilExAssignment $assignment
MandatoryAssignmentsManager $mandatory_manager
static getOverviewContent(ilInfoScreenGUI $a_info, ilExSubmission $a_submission)
ilGlobalTemplateInterface $tpl
ilExAssignmentTypesGUI $type_guis
ilExSubmission $submission
handleNewUpload(bool $a_no_notifications=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const TYPE_SUBMISSION_UPLOAD
static getNotificationsForObject(int $type, int $id, ?int $page_id=null, bool $ignore_threshold=false)
Get all users/recipients for given object.
const TYPE_EXERCISE_SUBMISSION
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc