28 protected \ILIAS\Exercise\InternalDomainService
$domain;
44 $this->
user = $DIC->user();
45 $this->domain =
$DIC->exercise()->internal()->domain();
46 $this->permanent_link =
$DIC->exercise()->internal()->gui()->permanentLink();
52 $this->ass_id = $a_val;
64 $type = $types->getById($ass->getType());
65 if (
$type->supportsWebDirAccess()) {
67 if ($submission->hasSubmittedPrintVersion()) {
71 $this->permanent_link->getOpenSubmissionsLink($this->ref_id, $this->getAssignmentId(), $this->user->getId())
79 $this->peer_id = $a_val;
89 $this->additional_text = $a_val;
97 public function send(): bool
132 $this->
appendBody($this->permanent_link->getPermanentLink($this->ref_id, $this->getAssignmentId()));
133 $this->
getMail()->appendInstallationSignature(
true);
163 $ilUser->getFullname()
168 $this->permanent_link->getPermanentLink($this->ref_id, $this->getAssignmentId())
183 $this->permanent_link->getDownloadSubmissionLink($this->ref_id, $this->getAssignmentId(), $ilUser->getId())
197 $this->permanent_link->getGradesLink($this->ref_id, $this->getAssignmentId())
200 $this->
getMail()->appendInstallationSignature(
true);
234 $this->
appendBody($this->permanent_link->getPermanentLink($this->ref_id, $this->getAssignmentId()));
235 $this->
getMail()->appendInstallationSignature(
true);
272 $this->
appendBody($this->permanent_link->getPermanentLink($this->ref_id, $this->getAssignmentId()));
273 $this->
getMail()->appendInstallationSignature(
true);
291 $perma->getReceivedFeedbackLink($this->ref_id, $this->getAssignmentId())
308 $perma->getGivenFeedbackLink($this->ref_id, $this->getAssignmentId(), $this->getPeerId())
324 $ilUser->getFullname(),
325 $perma->getGradesLink($this->ref_id, $this->getAssignmentId())
340 $perma->getPermanentLink($this->ref_id, $this->getAssignmentId())
373 $this->
getMail()->appendInstallationSignature(
true);
382 parent::initLanguage($a_usr_id);
static lookupType(int $a_id)
const TYPE_UPLOAD
direct checks against const should be avoided, use type objects instead
static lookupTitle(int $a_id)
Exercise submission //TODO: This class has many static methods related to delivered "files".
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const TYPE_IDL_DEADLINE_SET
const TYPE_DEADLINE_REQUESTED
ILIAS Exercise PermanentLink PermanentLinkManager $permanent_link
const TYPE_SUBMISSION_UPLOAD
setAssignmentId(int $a_val)
const TYPE_MESSAGE_FROM_PF_GIVER
ILIAS Exercise InternalDomainService $domain
const TYPE_FEEDBACK_FILE_ADDED
const TYPE_MESSAGE_FROM_PF_RECIPIENT
const TYPE_FEEDBACK_TEXT_ADDED
sendExerciseNotification(int $rcp, string $subject, string $text, string $link="")
initLanguage(int $a_usr_id)
Add language module exc.
setAdditionalText(string $a_val)
getObjectTitle(bool $a_shorten=false)
sendMail(array $a_rcp, bool $a_parse_recipients=true)
getLanguageText(string $a_keyword)
appendBody(string $a_body)
setSubject(string $a_subject)
static getSalutation(int $a_usr_id, ?ilLanguage $a_language=null)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc