Метод enqueueDescendantDepartmentUnlink

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

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

Путь к исходному файлу строки 155–163
~/bitrix/modulesim/lib/V2/Integration/HumanResources/Sync/SyncService.php

Исходный код

PHP
private static

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

private static function enqueueDescendantDepartmentUnlink(int $chatId, int $nodeId): void

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

Описание

Down-cascade complement of syncDepartmentsToAncestors: a department unlinked from a chat must be gone from its descendants too (e.g. socialnetwork drops the department off the project chat on COLLAB unlink — im propagates it down the tree). Offloaded to a queue and processed batch by batch (DepartmentTreeSyncReceiver) so a wide/deep tree never blocks the request.

Параметры

2
Имя Тип По умолчанию Флаги
$chatId int -
-
$nodeId int -
-