1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Channel.php
См. документацию.
1<?php
2
3namespace Bitrix\Im\V2\Controller\Recent;
4
5use Bitrix\Im\V2\Chat\OpenChannelChat;
6use Bitrix\Im\V2\Controller\BaseController;
7use Bitrix\Im\V2\Recent\RecentChannel;
8use Bitrix\Intranet\ActionFilter\IntranetUser;
9use Bitrix\Main\Loader;
10
12{
13
17 public function tailAction(int $limit = 50, array $filter = []): ?array
18 {
19 $limit = $this->getLimit($limit);
20 $recent = RecentChannel::getOpenChannels($limit, $filter['lastMessageId'] ?? null);
21
22 return $this->toRestFormatWithPaginationData([$recent], $limit, $recent->count());
23 }
24
28 public function extendPullWatchAction(): ?array
29 {
31
32 return ['result' => true];
33 }
34
35 protected function getDefaultPreFilters()
36 {
37 $prefilters = parent::getDefaultPreFilters();
38
39 if (Loader::includeModule('intranet'))
40 {
41 $prefilters[] = new IntranetUser();
42 }
43
44 return $prefilters;
45 }
46}
static extendPullWatchToCommonList(?int $userId=null)
Определения OpenChannelChat.php:168
toRestFormatWithPaginationData(array $entities, int $needCount, int $realCount)
Определения BaseController.php:132
tailAction(int $limit=50, array $filter=[])
Определения Channel.php:17
static getOpenChannels(int $limit, ?int $lastMessageId=null)
Определения RecentChannel.php:11
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$filter
Определения iblock_catalog_list.php:54