ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
◀ ilDoc Overview
ilNotificationMailHandler.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Notifications
;
22
23
use
ILIAS\Notifications\Model\ilNotificationObject
;
24
use
ilMail
;
25
use
ILIAS\Mail\Attachments\MailAttachments
;
26
30
class
ilNotificationMailHandler
extends
ilNotificationHandler
31
{
32
public
function
notify
(
ilNotificationObject
$notification): void
33
{
34
$sender_id = $notification->handlerParams[
'mail'
][
'sender'
] ??
ANONYMOUS_USER_ID
;
35
$mail =
new
ilMail
((
int
) $sender_id);
36
$mail->appendInstallationSignature(
true
);
37
$mail->enqueue(
38
$notification->user->getLogin(),
39
''
,
40
''
,
41
$notification->title,
42
$notification->longDescription,
43
MailAttachments::empty
()
44
);
45
}
46
}
ILIAS\Mail\Attachments\MailAttachments
Definition:
MailAttachments.php:27
ILIAS\Mail\Attachments\MailAttachments\empty
static empty()
Definition:
MailAttachments.php:38
ILIAS\Notifications\Model\ilNotificationObject
Definition:
ilNotificationObject.php:30
ILIAS\Notifications\ilNotificationHandler
Definition:
ilNotificationHandler.php:30
ILIAS\Notifications\ilNotificationMailHandler
Definition:
ilNotificationMailHandler.php:31
ILIAS\Notifications\ilNotificationMailHandler\notify
notify(ilNotificationObject $notification)
Definition:
ilNotificationMailHandler.php:32
ilMail
Definition:
class.ilMail.php:34
ANONYMOUS_USER_ID
const ANONYMOUS_USER_ID
Definition:
constants.php:27
ILIAS\Notifications
components
ILIAS
Notifications
classes
ilNotificationMailHandler.php
Generated on Wed Nov 11 2026 23:08:27 for ILIAS by
1.9.4 (using
Doxyfile
)