4 include_once
'./Services/Mail/classes/class.ilMailNotification.php';
17 parent::__construct();
30 $this->language->loadLanguageModule(
'assessment');
32 $this->
setSubject(sprintf($this->language->txt(
'tst_user_finished_test'), $title));
35 $this->
appendBody($this->language->txt(
'user_has_finished_a_test'));
38 $this->
appendBody($this->language->txt(
'title').
': '. $title);
40 $this->
appendBody($this->language->txt(
'tst_participant').
': '. $usr_data);
47 $this->
appendBody($this->language->txt(
'tst_notification_explanation_admin'));
49 $this->
getMail()->appendInstallationSignature(
true);
51 $this->
sendMail(array($owner_id),array(
'system'));
64 $this->language->loadLanguageModule(
'assessment');
67 $this->
setSubject(sprintf($this->language->txt(
'tst_user_finished_test'), $title));
70 $this->
appendBody($this->language->txt(
'user_has_finished_a_test'));
73 $this->
appendBody($this->language->txt(
'title').
': '. $title);
75 $this->
appendBody($this->language->txt(
'tst_participant').
': '. $usr_data);
82 $this->
appendBody($this->language->txt(
'tst_attached_xls_file'));
85 $this->
appendBody($this->language->txt(
'tst_notification_explanation_admin'));
89 $this->
getMail()->appendInstallationSignature(
true);
91 $this->
sendMail(array($owner_id),array(
'system'));
initLanguage($a_usr_id)
Init language.
Class ilTestMailNotification.
setAttachments($a_att)
Set attachments.
static setUseRelativeDates($a_status)
set use relative dates
Base class for course/group mail notifications.
sendAdvancedNotification($owner_id, $title, $usr_data, $file_names)
send an advanced notification to the owner of the test
static formatDate(ilDateTime $date)
Format a date public.
static getSalutation($a_usr_id, $a_language=null)
Get salutation.
sendSimpleNotification($owner_id, $title, $usr_data)
Send a simple notification to the owner of the test.
sendMail(array $a_rcp, $a_type, $a_parse_recipients=true)
appendBody($a_body)
Append body text.