ILIAS  release_8 Revision v8.23
ilCronDeleteInactiveUserReminderMailNotification Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilCronDeleteInactiveUserReminderMailNotification:
+ Collaboration diagram for ilCronDeleteInactiveUserReminderMailNotification:

Public Member Functions

 __construct ()
 
 send ()
 
- Public Member Functions inherited from ilMimeMailNotification
 __construct (bool $a_is_personal_workspace=false)
 
 sendMimeMail (string $a_rcp)
 
 setCurrentRecipient (string $current_recipient)
 
 getCurrentRecipient ()
 
 setMimeMail (ilMimeMail $mime_mail)
 
 getMimeMail ()
 
- Public Member Functions inherited from ilMailNotification
 __construct (bool $a_is_personal_workspace=false)
 
 setType (int $a_type)
 
 getType ()
 
 setSender (int $a_usr_id)
 
 getSender ()
 
 setRecipients (array $a_rcp)
 
 getRecipients ()
 
 setAttachments (array $a_att)
 
 getAttachments ()
 
 setLangModules (array $a_modules)
 
 getUserLanguage (int $a_usr_id)
 
 setRefId (int $a_id)
 
 getRefId ()
 
 getObjId ()
 
 setObjId (int $a_obj_id)
 
 getObjType ()
 
 setAdditionalInformation (array $a_info)
 
 getAdditionalInformation ()
 
 sendMail (array $a_rcp, bool $a_parse_recipients=true)
 
 getBlockBorder ()
 

Protected Member Functions

 initLanguage (int $a_usr_id)
 
- Protected Member Functions inherited from ilMimeMailNotification
 setSubject (string $a_subject)
 
 initMimeMail ()
 
 initLanguageByIso2Code (string $a_code='')
 
 initLanguage (int $a_usr_id)
 
- Protected Member Functions inherited from ilMailNotification
 setSubject (string $a_subject)
 
 getSubject ()
 
 setBody (string $a_body)
 
 appendBody (string $a_body)
 
 getBody ()
 
 initLanguage (int $a_usr_id)
 
 initLanguageByIso2Code (string $a_code='')
 
 setLanguage (ilLanguage $a_language)
 
 getLanguage ()
 
 getLanguageText (string $a_keyword)
 
 getObjectTitle (bool $a_shorten=false)
 
 initMail ()
 
 getMail ()
 
 createPermanentLink (array $a_params=[], string $a_append='')
 
 userToString (int $a_usr_id)
 
 isRefIdAccessible (int $a_user_id, int $a_ref_id, string $a_permission="read")
 

Additional Inherited Members

- Data Fields inherited from ilMailNotification
const SUBJECT_TITLE_LENGTH = 60
 
- Protected Attributes inherited from ilMimeMailNotification
ilMimeMail $mime_mail
 
string $current_recipient
 
ilMailMimeSenderFactory $senderFactory
 
- Protected Attributes inherited from ilMailNotification
int $type
 
int $sender
 
ilMail $mail = null
 
string $subject = ''
 
string $body = ''
 
array $attachments = []
 
ilLanguage $language
 
array $lang_modules = []
 
array $recipients = []
 
int $ref_id
 
int $obj_id = 0
 
string $obj_type = ''
 
array $additional_info = []
 
bool $is_in_wsp
 
ilWorkspaceTree $wsp_tree
 
ilWorkspaceAccessHandler $wsp_access_handler
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilCronDeleteInactiveUserReminderMailNotification

Author
Guido Vollbach gvoll.nosp@m.bach.nosp@m.@data.nosp@m.bay..nosp@m.de

Definition at line 23 of file class.ilCronDeleteInactiveUserReminderMailNotification.php.

Constructor & Destructor Documentation

◆ __construct()

ilCronDeleteInactiveUserReminderMailNotification::__construct ( )

Definition at line 25 of file class.ilCronDeleteInactiveUserReminderMailNotification.php.

References ILIAS\GlobalScreen\Provider\__construct().

26  {
28  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ initLanguage()

ilCronDeleteInactiveUserReminderMailNotification::initLanguage ( int  $a_usr_id)
protected

Definition at line 31 of file class.ilCronDeleteInactiveUserReminderMailNotification.php.

References ilMailNotification\getLanguage().

31  : void
32  {
33  parent::initLanguage($a_usr_id);
34  $this->getLanguage()->loadLanguageModule('user');
35  }
+ Here is the call graph for this function:

◆ send()

ilCronDeleteInactiveUserReminderMailNotification::send ( )

Definition at line 37 of file class.ilCronDeleteInactiveUserReminderMailNotification.php.

References ilMailNotification\$body, $DIC, Vendor\Package\$e, $lng, ilMail\_getInstallationSignature(), ilMailNotification\appendBody(), ilDatePresentation\formatDate(), ilMailNotification\getAdditionalInformation(), ilMimeMailNotification\getCurrentRecipient(), ilMailNotification\getLanguage(), ilMailNotification\getRecipients(), IL_CAL_UNIX, ilMimeMailNotification\initMimeMail(), ilMimeMailNotification\sendMimeMail(), ilDatePresentation\setLanguage(), ilMimeMailNotification\setSubject(), ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().

37  : void
38  {
39  global $DIC;
40 
41  $lng = $DIC['lng'];
42 
43  $additional_information = $this->getAdditionalInformation();
44 
47 
48  foreach ($this->getRecipients() as $rcp) {
49  try {
50  $this->handleCurrentRecipient($rcp);
51  } catch (ilMailException $e) {
52  continue;
53  }
54 
55  $this->initMimeMail();
56 
58  $date_for_deletion = ilDatePresentation::formatDate(new ilDate($additional_information["date"], IL_CAL_UNIX));
59 
60  $this->setSubject($this->getLanguage()->txt('del_mail_subject'));
61  $body = sprintf($this->getLanguage()->txt("del_mail_body"), $rcp->fullname, "\n\n", $additional_information["www"], $date_for_deletion);
62  $this->appendBody($body);
64  $this->sendMimeMail($this->getCurrentRecipient());
65  }
66 
69  }
$lng
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false)
const IL_CAL_UNIX
static setLanguage(ilLanguage $a_lng)
global $DIC
Definition: feed.php:28
static setUseRelativeDates(bool $a_status)
set use relative dates
static _getInstallationSignature()
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: