2require_once
'Services/Mail/classes/class.ilMailNotification.php';
3require_once
'Modules/IndividualAssessment/interfaces/Notification/interface.ilIndividualAssessmentNotificator.php';
16 parent::__construct();
25 $clone->reciever = $member;
26 $clone->ref_id = $member->
assessment()->getRefId();
52 if(! $this->reciever instanceof
ilIndividualAssessmentMember || !in_array($this->occasion, array(self::OCCASION_COMPLETED,self::OCCASION_FAILED))) {
57 $subject = $this->occasion === self::OCCASION_COMPLETED
60 $message = $this->occasion === self::OCCASION_COMPLETED
63 $assessment_title = $this->reciever->assessment()->getTitle();
74 $this->
getMail()->appendInstallationSignature(
true);
75 $this->
sendMail(array($this->reciever->id()),array(
'system'));
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
Edit the record of a user, set LP.
assessment()
Get the ilObjIndividualAssessment corresponding to this membership.
Notificate user using internal mail system.
withReciever(ilIndividualAssessmentMember $member)
Define the member, that should recieve the message.ilIndividualAssessmentNotificator $this
withOccasionFailed()
Set message mode to failed.ilIndividualAssessmentNotificator $this
withOccasionCompleted()
Set message mode to completed.ilIndividualAssessmentNotificator $this
Base class for course/group mail notifications.
appendBody($a_body)
Append body text.
sendMail(array $a_rcp, $a_type, $a_parse_recipients=true)
initLanguage($a_usr_id)
Init language.
getLanguageText($a_keyword)
setLangModules(array $a_modules)
Set lang modules.
createPermanentLink($a_params=array(), $a_append='')
Basic method collection should be implemented by a notificator used by Individual assessment.