Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
pushsender.php
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Internals\Space\Counter
;
4
5
use
Bitrix\Main\Loader
;
6
use
Bitrix\Main\ModuleManager
;
7
use
Bitrix\Socialnetwork\Integration\Pull\PushService
;
8
9
class
PushSender
10
{
11
public
const
COMMAND_USER_SPACES
=
'user_spaces_counter'
;
12
13
public
function
createPush
(array $userIds,
string
$command, array $params)
14
{
15
if
(!
ModuleManager::isModuleInstalled
(
'pull'
) || !Loader::includeModule(
'pull'
))
16
{
17
return
;
18
}
19
20
PushService::addEvent($userIds, [
21
'module_id'
=> PushService::MODULE_NAME,
22
'command'
=> $command,
23
'params'
=> $params
24
]);
25
}
26
}
Bitrix\Main\Loader
Definition
loader.php:12
Bitrix\Main\ModuleManager
Definition
modulemanager.php:5
Bitrix\Main\ModuleManager\isModuleInstalled
static isModuleInstalled($moduleName)
Definition
modulemanager.php:67
Bitrix\Socialnetwork\Integration\Pull\PushService
Definition
pushservice.php:15
Bitrix\Socialnetwork\Internals\Space\Counter\PushSender
Definition
pushsender.php:10
Bitrix\Socialnetwork\Internals\Space\Counter\PushSender\createPush
createPush(array $userIds, string $command, array $params)
Definition
pushsender.php:13
Bitrix\Socialnetwork\Internals\Space\Counter\PushSender\COMMAND_USER_SPACES
const COMMAND_USER_SPACES
Definition
pushsender.php:11
Bitrix\Socialnetwork\Internals\Space\Counter
Definition
dictionary.php:3
modules
socialnetwork
lib
internals
space
counter
pushsender.php
Создано системой
1.10.0