ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilCronDeleteInactiveUserReminderMailNotification.php
Go to the documentation of this file.
1<?php
2
24{
25 public function __construct()
26 {
28 }
29
30
31 protected function initLanguage(int $a_usr_id): void
32 {
33 parent::initLanguage($a_usr_id);
34 $this->getLanguage()->loadLanguageModule('user');
35 }
36
37 public function send(): void
38 {
39 $additional_information = $this->getAdditionalInformation();
40
43
45 foreach ($this->getRecipients() as $rcp) {
46 try {
47 $this->handleCurrentRecipient($rcp);
48 } catch (ilMailException $e) {
49 continue;
50 }
51
52 $this->initMimeMail();
53
55
56 $this->setSubject($this->getLanguage()->txt('del_mail_subject'));
57 $body = sprintf(
58 $this->getLanguage()->txt("del_mail_body"),
59 $rcp->getFullname(),
60 "\n\n",
61 $additional_information["www"],
62 ilDatePresentation::formatDate(new ilDate($additional_information["date"], IL_CAL_UNIX)),
63 $rcp->getLogin()
64 );
65 $this->appendBody($body);
67 $this->sendMimeMail($this->getCurrentRecipient());
68 }
69
72 }
73}
const IL_CAL_UNIX
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static setUseRelativeDates(bool $a_status)
set use relative dates
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
static setLanguage(ilLanguage $a_lng)
Class for single dates.
static _getInstallationSignature()
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
catch(ilCmiXapiException $e) send($response)
Definition: xapitoken.php:100