Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
huaweipushkit.php
1
<?php
2
3
namespace
Bitrix\Pull\Push\Service
;
4
5
use
Bitrix\Pull\Push\Message\HuaweiPushKitMessage
;
6
7
class
HuaweiPushKit
extends
BaseService
{
8
9
function
getMessageInstance
($token):
HuaweiPushKitMessage
10
{
11
return
new
HuaweiPushKitMessage
($token);
12
}
13
14
public
static
function
shouldBeSent
($messageRowData): bool
15
{
16
return
true
;
17
}
18
19
public
function
getBatch
(array $messages = []): string
20
{
21
$arGroupedMessages =
self::getGroupedByAppID
($messages);
22
if
(empty($arGroupedMessages))
23
{
24
return
''
;
25
}
26
27
return
$this->
getBatchWithModifier
($arGroupedMessages,
";6;"
);
28
}
29
}
Bitrix\Pull\Push\Message\HuaweiPushKitMessage
Definition
huaweipushkitmessage.php:8
Bitrix\Pull\Push\Service\BaseService
Definition
baseservice.php:10
Bitrix\Pull\Push\Service\BaseService\getGroupedByAppID
static getGroupedByAppID($arMessages)
Definition
baseservice.php:88
Bitrix\Pull\Push\Service\BaseService\getBatchWithModifier
getBatchWithModifier($appMessages=Array(), $modifier="")
Definition
baseservice.php:14
Bitrix\Pull\Push\Service\HuaweiPushKit
Definition
huaweipushkit.php:7
Bitrix\Pull\Push\Service\HuaweiPushKit\shouldBeSent
static shouldBeSent($messageRowData)
Definition
huaweipushkit.php:14
Bitrix\Pull\Push\Service\HuaweiPushKit\getBatch
getBatch(array $messages=[])
Definition
huaweipushkit.php:19
Bitrix\Pull\Push\Service\HuaweiPushKit\getMessageInstance
getMessageInstance($token)
Definition
huaweipushkit.php:9
Bitrix\Pull\Push\Service
Definition
apple.php:3
modules
pull
lib
push
service
huaweipushkit.php
Создано системой
1.10.0