48 $ilTabs = $DIC->tabs();
49 $lng = $DIC->language();
52 $this->exercise = $a_exercise;
53 $this->submission = $a_submission;
58 $this->tabs_gui = $ilTabs;
62 include_once(
"./Modules/Exercise/AssignmentTypes/GUI/classes/class.ilExAssignmentTypesGUI.php");
70 $this->tabs_gui->clearTargets();
71 $this->tabs_gui->setBackTarget(
72 $this->lng->txt(
"back"),
73 $this->ctrl->getLinkTarget($this,
"returnToParent")
76 $this->tabs_gui->addTab(
78 $this->lng->txt(
"exc_submission"),
79 $this->ctrl->getLinkTarget($this,
"")
81 $this->tabs_gui->activateTab(
"submission");
83 if ($this->assignment->hasTeam()) {
84 include_once
"Modules/Exercise/classes/class.ilExSubmissionTeamGUI.php";
91 $this->ctrl->returnToParent($this);
101 $has_submitted = $this->submission->hasSubmitted();
103 $this->exercise->processExerciseStatus(
105 $this->submission->getUserIds(),
107 $this->submission->validatePeerReviews()
110 if ($has_submitted &&
111 !$a_no_notifications) {
112 include_once
"./Services/Notification/classes/class.ilNotification.php";
115 include_once
"./Modules/Exercise/classes/class.ilExerciseMailNotification.php";
118 $not->setAssignmentId($this->assignment->getId());
119 $not->setRefId($this->exercise->getRefId());
120 $not->setRecipients(
$users);
static getOverviewContent(ilInfoScreenGUI $a_info, ilExSubmission $a_submission)
const TYPE_SUBMISSION_UPLOAD
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)