ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilCronDeleteInactiveUserReminderMailNotification.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once './Services/Mail/classes/class.ilMimeMailNotification.php';
5include_once './Services/Mail/classes/class.ilMimeMail.php';
6
14{
18 public function __construct()
19 {
20 parent::__construct();
21 }
22
26 protected function initLanguageByIso2Code($a_code = '')
27 {
28 parent::initLanguageByIso2Code($a_code);
29 $this->getLanguage()->loadLanguageModule('user');
30 }
31
32 public function send()
33 {
34 global $lng;
35
36 $additional_information = $this->getAdditionalInformation();
37
40
41 foreach ($this->getRecipients() as $rcp) {
42 try {
43 $this->handleCurrentRecipient($rcp);
44 } catch (ilMailException $e) {
45 continue;
46 }
47
48 $this->initMimeMail();
50
52 $date_for_deletion = ilDatePresentation::formatDate(new ilDate($additional_information["date"], IL_CAL_UNIX));
53
54 $this->setSubject($this->getLanguage()->txt('del_mail_subject'));
55 $body = sprintf($this->getLanguage()->txt("del_mail_body"), $rcp->fullname, "\n\n", $additional_information["www"], $date_for_deletion);
56 $this->appendBody($body);
58 $this->sendMimeMail($this->getCurrentRecipient());
59 }
60
63 }
64}
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
const IL_CAL_UNIX
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date @access public.
static setLanguage($a_lng)
set language
static setUseRelativeDates($a_status)
set use relative dates
static useRelativeDates()
check if relative dates are used
Class for single dates.
Class ilMailException.
appendBody($a_body)
Append body text.
getRecipients()
get array of recipients
static _getInstallationSignature()
Base class for mime mail notifications.
global $lng
Definition: privfeed.php:17