ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
ilNotificationMailHandler.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
namespace
ILIAS\Notifications
;
22
23
use
ILIAS\Notifications\Model\ilNotificationObject
;
24
use
ilMail
;
25
29
class
ilNotificationMailHandler
extends
ilNotificationHandler
30
{
31
public
function
notify
(
ilNotificationObject
$notification): void
32
{
33
$sender_id = $notification->handlerParams[
'mail'
][
'sender'
] ??
ANONYMOUS_USER_ID
;
34
$mail =
new
ilMail
((
int
) $sender_id);
35
$mail->appendInstallationSignature(
true
);
36
$mail->enqueue(
37
$notification->user->getLogin(),
38
''
,
39
''
,
40
$notification->title,
41
$notification->longDescription,
42
[]
43
);
44
}
45
}
ANONYMOUS_USER_ID
const ANONYMOUS_USER_ID
Definition:
constants.php:27
ILIAS\Notifications\Model\ilNotificationObject
Definition:
ilNotificationObject.php:29
ILIAS\Notifications\ilNotificationMailHandler
Definition:
ilNotificationMailHandler.php:29
ILIAS\Notifications\ilNotificationMailHandler\notify
notify(ilNotificationObject $notification)
Definition:
ilNotificationMailHandler.php:31
ilMail
ilNotificationObject
ILIAS\Notifications\ilNotificationHandler
Definition:
ilNotificationHandler.php:28
ILIAS\Notifications
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Services
Notifications
classes
ilNotificationMailHandler.php
Generated on Sun Aug 31 2025 22:02:28 for ILIAS by
1.8.13 (using
Doxyfile
)