Метод migrateLegacyPinsToSystemFolder

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу строки 139–213
~/bitrix/modulesim/lib/V2/Folder/FolderBootstrapper.php

Исходный код

PHP
private

Сигнатура метода

private function migrateLegacyPinsToSystemFolder(int $userId, int $folderId, SystemFolder $systemFolder): bool

Возвращает: bool

Описание

One-time copying of legacy global pins for $userId into the new system folder $folderId, but only for chats that match the recent section of $systemFolder. Idempotent through UIX_B_IM_FOLDER_PIN_1 (FOLDER_ID, CHAT_ID). Folders without a matching legacy recent section opt out before pinned rows are loaded. TODO: remove this legacy/global pin migration branch after clients switch from global pins to scoped folder pins.

Параметры

3
Имя Тип По умолчанию Флаги
$userId int -
-
$folderId int -
-
$systemFolder SystemFolder -
-