Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
chat.php
1<?php
3
4use \Bitrix\Landing\PublicActionResult;
5use \Bitrix\Landing\Chat\Chat as ChatCore;
6
7class Chat
8{
14 public static function getList(array $params = [])
15 {
16 static $internal = true;
17
18 $result = new PublicActionResult();
19 $params = $result->sanitizeKeys($params);
20
21 $items = [];
22 foreach (ChatCore::getList($params) as $item)
23 {
24 $items[] = $item;
25 }
26 $result->setResult($items);
27
28 return $result;
29 }
30
36 public static function joinChat($internalId)
37 {
38 static $internal = true;
39
40 $result = new PublicActionResult();
41 $result->setResult(
42 ChatCore::joinChat(intval($internalId))
43 );
44
45 return $result;
46 }
47}
static getList($params=[])
Definition chat.php:105
static joinChat(int $internalId)
Definition chat.php:223
static joinChat($internalId)
Definition chat.php:36
static getList(array $params=[])
Definition chat.php:14