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'));
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);
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'));
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);
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
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
sendSimpleNotification($owner_id, $title, $usr_data)
Send a simple notification to the owner of the test.
Create styles array
The data for the language used.
sendMail(array $a_rcp, $a_type, $a_parse_recipients=true)
appendBody($a_body)
Append body text.
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
static getSalutation($a_usr_id, ilLanguage $a_language=null)