58 $ilTabs = $DIC->tabs();
59 $lng = $DIC->language();
62 $this->exercise = $a_exercise;
63 $this->submission = $a_submission;
66 $this->mandatory_manager = $DIC->exercise()->internal()->service()->getMandatoryAssignmentManager($this->exercise);
70 $this->tabs_gui = $ilTabs;
75 $this->tool_context = $DIC->globalScreen()->tool()->context();
82 $this->tabs_gui->clearTargets();
83 $this->tabs_gui->setBackTarget(
84 $this->lng->txt(
"back"),
85 $this->ctrl->getLinkTarget($this,
"returnToParent")
88 $this->tabs_gui->addTab(
90 $this->lng->txt(
"exc_submission"),
91 $this->ctrl->getLinkTarget($this,
"")
93 $this->tabs_gui->activateTab(
"submission");
95 if ($this->assignment->hasTeam()) {
102 $this->ctrl->returnToParent($this);
112 $has_submitted = $this->submission->hasSubmitted();
114 $this->exercise->processExerciseStatus(
116 $this->submission->getUserIds(),
118 $this->submission->validatePeerReviews()
121 if ($has_submitted &&
122 !$a_no_notifications) {
127 $not->setAssignmentId($this->assignment->getId());
128 $not->setRefId($this->exercise->getRefId());
129 $not->setRecipients($users);
145 $ass_ids = [$this->assignment->getId()];
static getOverviewContent(ilInfoScreenGUI $a_info, ilExSubmission $a_submission)
const TYPE_SUBMISSION_UPLOAD
triggerAssignmentTool()
Trigger assigment tool.
Exercise submission base gui.
static getInstance()
Get instance.
static getNotificationsForObject($type, $id, $page_id=null, $ignore_threshold=false)
Get all users for given object.
handleNewUpload($a_no_notifications=false)
const TYPE_EXERCISE_SUBMISSION
Exercise submission //TODO: This class has to much static methods related to delivered "files"...
__construct(ilObjExercise $a_exercise, ilExSubmission $a_submission)