Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
huaweipushkit.php
1<?php
2
4
6
8
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}
static getGroupedByAppID($arMessages)
getBatchWithModifier($appMessages=Array(), $modifier="")