1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
}
$userId
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения
check_mail.php:18
Bitrix\UI\NotificationManager\Notification
Определения
Notification.php:9
Bitrix\UI\NotificationManager\Notifier
Определения
Notifier.php:9
Bitrix\UI\NotificationManager\Notifier\notify
static notify(int $userId, Notification $notification)
Определения
Notifier.php:19
bitrix
modules
ui
lib
NotificationManager
Notifier.php
Создано системой
1.14.0