Метод fetchAccessibleCandidates
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
248–298
~/bitrix/modulesim/lib/V2/Recent/PreviewSource/CollabPreviewSourceResolver.php
Исходный код
Сигнатура метода
protected function fetchAccessibleCandidates(int $collabChatId, int $userId): array
Возвращает:
array
Описание
Accessible candidates of the collab: direct children (PARENT_ID == collab) plus the collab chat itself, restricted to chats with a not-hidden, not-muted relation of the user and gated through the parent-membership-aware access filter. Threads are excluded (their unread is rolled up by UnreadFreshnessQuery).
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$collabChatId
|
int
|
-
|
-
|
$userId
|
int
|
-
|
-
|