43 $ilTabs = $DIC->tabs();
44 $lng = $DIC->language();
47 $this->exercise = $a_exercise;
48 $this->submission = $a_submission;
53 $this->tabs_gui = $ilTabs;
62 $this->tabs_gui->clearTargets();
63 $this->tabs_gui->setBackTarget(
64 $this->lng->txt(
"back"),
65 $this->ctrl->getLinkTarget($this,
"returnToParent")
68 $this->tabs_gui->addTab(
70 $this->lng->txt(
"exc_submission"),
71 $this->ctrl->getLinkTarget($this,
"")
73 $this->tabs_gui->activateTab(
"submission");
75 if ($this->assignment->hasTeam()) {
76 include_once
"Modules/Exercise/classes/class.ilExSubmissionTeamGUI.php";
83 $this->ctrl->returnToParent($this);
93 $has_submitted = $this->submission->hasSubmitted();
95 $this->exercise->processExerciseStatus(
97 $this->submission->getUserIds(),
99 $this->submission->validatePeerReviews()
102 if ($has_submitted &&
103 !$a_no_notifications) {
104 include_once
"./Services/Notification/classes/class.ilNotification.php";
107 include_once
"./Modules/Exercise/classes/class.ilExerciseMailNotification.php";
110 $not->setAssignmentId($this->assignment->getId());
111 $not->setRefId($this->exercise->getRefId());
112 $not->setRecipients(
$users);
static getOverviewContent(ilInfoScreenGUI $a_info, ilExSubmission $a_submission)
const TYPE_SUBMISSION_UPLOAD
Exercise submission base gui.
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
__construct(ilObjExercise $a_exercise, ilExSubmission $a_submission)