ILIAS
Release_5_0_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
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
4
include_once
'./Services/Mail/classes/class.ilMimeMailNotification.php'
;
5
include_once
'./Services/Mail/classes/class.ilMimeMail.php'
;
6
13
class
ilCronDeleteInactiveUserReminderMailNotification
extends
ilMimeMailNotification
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
38
$old_val =
ilDatePresentation::useRelativeDates
();
39
ilDatePresentation::setUseRelativeDates
(
false
);
40
41
foreach
($this->
getRecipients
() as $rcp)
42
{
43
try
44
{
45
$this->handleCurrentRecipient($rcp);
46
}
47
catch
(
ilMailException
$e)
48
{
49
continue
;
50
}
51
52
$this->initMimeMail();
53
$this->
initLanguageByIso2Code
();
54
55
ilDatePresentation::setLanguage
($this->
getLanguage
());
56
$date_for_deletion =
ilDatePresentation::formatDate
(
new
ilDate
($additional_information[
"date"
],
IL_CAL_UNIX
));
57
58
$this->
setSubject
($this->
getLanguage
()->txt(
'del_mail_subject'
));
59
$body
= sprintf($this->
getLanguage
()->txt(
"del_mail_body"
), $rcp->fullname,
"\n\n"
,$additional_information[
"www"
], $date_for_deletion);
60
$this->
appendBody
(
$body
);
61
$this->
appendBody
(
ilMail::_getInstallationSignature
());
62
$this->
sendMimeMail
($this->
getCurrentRecipient
());
63
}
64
65
ilDatePresentation::setUseRelativeDates
($old_val);
66
ilDatePresentation::setLanguage
($lng);
67
}
68
}
Services
User
classes
class.ilCronDeleteInactiveUserReminderMailNotification.php
Generated on Wed Apr 27 2016 21:02:12 for ILIAS by
1.8.1.2 (using
Doxyfile
)