Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
Notifier.php
1
<?php
2
3
namespace
Bitrix\UI\NotificationManager
;
4
5
use
Bitrix\Main\Loader
;
6
use
Bitrix\Pull\Event
;
7
8
class
Notifier
9
{
19
public
static
function
notify
(
int
$userId,
Notification
$notification): bool
20
{
21
if
(!Loader::includeModule(
'pull'
))
22
{
23
return
false
;
24
}
25
26
return
Event::add($userId, [
27
'module_id'
=>
'ui'
,
28
'command'
=>
'notify'
,
29
'params'
=> [
30
'notification'
=> $notification,
31
],
32
]);
33
}
34
}
Bitrix\Main\Event
Definition
event.php:5
Bitrix\Main\Loader
Definition
loader.php:12
Bitrix\UI\NotificationManager\Notification
Definition
Notification.php:9
Bitrix\UI\NotificationManager\Notifier
Definition
Notifier.php:9
Bitrix\UI\NotificationManager\Notifier\notify
static notify(int $userId, Notification $notification)
Definition
Notifier.php:19
Bitrix\UI\NotificationManager
modules
ui
lib
NotificationManager
Notifier.php
Создано системой
1.10.0