Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
google.php
1<?php
2
4
6
7class Google extends BaseService
8{
9 function __construct()
10 {
11 $this->allowEmptyMessage = false;
12 }
13
21 public function getBatch(array $messages = []): string
22 {
23 $arGroupedMessages = self::getGroupedByAppID($messages);
24 if (empty($arGroupedMessages))
25 {
26 return '';
27 }
28
29 $batch = $this->getBatchWithModifier($arGroupedMessages, ";3;");
30
31 if ($batch == '')
32 {
33 return $batch;
34 }
35
36 return $batch;
37 }
38
46 {
47 return new GoogleMessage($token);
48 }
49
50 public static function shouldBeSent($messageRowData): bool
51 {
52 return true;
53 }
54}
static getGroupedByAppID($arMessages)
getBatchWithModifier($appMessages=Array(), $modifier="")
static shouldBeSent($messageRowData)
Definition google.php:50
getBatch(array $messages=[])
Definition google.php:21