Метод setChatFolders
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
52–115
~/bitrix/modulesim/lib/V2/Folder/FolderChatService.php
Исходный код
Сигнатура метода
public function setChatFolders(int $userId, int $chatId, array $folderIds): Result
Возвращает:
Result
Описание
Sets the full set of personal-folder memberships for a chat. Diffs current vs new, UPSERT/DELETE accordingly. Folders that are not owned by $userId or are not personal are silently ignored.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$userId
|
int
|
-
|
-
|
$chatId
|
int
|
-
|
-
|
$folderIds
|
array
|
-
|
-
|