2 require_once
'Services/Mail/classes/class.ilMailNotification.php';
3 require_once
'Modules/IndividualAssessment/interfaces/Notification/interface.ilIndividualAssessmentNotificator.php';
18 parent::__construct();
28 $clone->reciever = $member;
29 $clone->ref_id = $member->
assessment()->getRefId();
39 $clone->occasion = self::OCCASION_FAILED;
49 $clone->occasion = self::OCCASION_COMPLETED;
58 if (!$this->reciever instanceof
ilIndividualAssessmentMember || !in_array($this->occasion, array(self::OCCASION_COMPLETED,self::OCCASION_FAILED))) {
63 $subject = $this->occasion === self::OCCASION_COMPLETED
66 $message = $this->occasion === self::OCCASION_COMPLETED
69 $assessment_title = $this->reciever->assessment()->getTitle();
80 $this->
getMail()->appendInstallationSignature(
true);
81 $this->
sendMail(array($this->reciever->id()), array(
'system'));
assessment()
Get the ilObjIndividualAssessment corresponding to this membership.
getLanguageText($a_keyword)
initLanguage($a_usr_id)
Init language.
withReciever(ilIndividualAssessmentMember $member)
Define the member, that should recieve the message.ilIndividualAssessmentNotificator $this ...
Notificate user using internal mail system.
Base class for course/group mail notifications.
catch(Exception $e) $message
withOccasionCompleted()
Set message mode to completed.ilIndividualAssessmentNotificator $this
Basic method collection should be implemented by a notificator used by Individual assessment...
setLangModules(array $a_modules)
Set lang modules.
sendMail(array $a_rcp, $a_type, $a_parse_recipients=true)
Edit the record of a user, set LP.
createPermanentLink($a_params=array(), $a_append='')
appendBody($a_body)
Append body text.
withOccasionFailed()
Set message mode to failed.ilIndividualAssessmentNotificator $this
static getSalutation($a_usr_id, ilLanguage $a_language=null)