1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
pushsender.php
См. документацию.
1<?php
2
3namespace Bitrix\Socialnetwork\Internals\EventService\Push;
4
5use Bitrix\Main\Loader;
6use Bitrix\Main\ModuleManager;
7use Bitrix\Socialnetwork\Integration\Pull\PushService;
8
10{
15 public static function sendPersonalEvent(array $userIds, string $command = '', array $eventData = []): void
16 {
17 if (
18 $command === ''
20 || !Loader::includeModule('pull')
21 )
22 {
23 return;
24 }
25
26 foreach ($userIds as $userId)
27 {
28 $pushData = $eventData;
29 $pushData['userId'] = $userId;
30
31 self::createPush([ $userId ], $command, $pushData);
32 }
33 }
34
40 protected static function createPush(array $userIds, string $command, array $params): void
41 {
42 if (
44 || !Loader::includeModule('pull')
45 )
46 {
47 return;
48 }
49
50 PushService::addEvent($userIds, [
51 'module_id' => PushService::MODULE_NAME,
52 'command' => $command,
53 'params' => $params
54 ]);
55 }
56}
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
Определения check_mail.php:18
static includeModule($moduleName)
Определения loader.php:67
static isModuleInstalled($moduleName)
Определения modulemanager.php:125
static sendPersonalEvent(array $userIds, string $command='', array $eventData=[])
Определения pushsender.php:15
static createPush(array $userIds, string $command, array $params)
Определения pushsender.php:40
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799