Метод withRecent
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
268–279
~/bitrix/modulesim/lib/model/chat.php
Исходный код
Сигнатура метода
public static function withRecent(Query $query, int $userId, string $joinType = Join::TYPE_LEFT): void
Возвращает:
void
Описание
Joins the user's recent row so callers can tell whether a chat is present in the user's recent list (select RECENT.ITEM_CID). With the default LEFT join it is null when the chat is absent from recent (hidden); pass Join::TYPE_INNER to keep only chats that are present in recent. Membership is a separate concern handled by withRelation().
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$query
|
Query
|
-
|
-
|
$userId
|
int
|
-
|
-
|
$joinType
|
string
|
Join::TYPE_LEFT
|
-
|