Метод assignNearestCandidate

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

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

Путь к исходному файлу строки 381–409
~/bitrix/modulesim/lib/V2/Recent/PreviewSource/UnreadFreshnessQuery.php

Исходный код

PHP
private

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

private function assignNearestCandidate(array $row, array $levels, array $candidateSet): ?int

Возвращает: ?int

Описание

Assigns a leaf to its closest candidate ancestor, then keeps it only if every level up to and including that ancestor is accessible. Returns the candidate chat id, or null when the leaf has no candidate ancestor or a level below the candidate is inaccessible.

Параметры

3
Имя Тип По умолчанию Флаги
$row array -
-
$levels array -
-
$candidateSet array -
-