Метод getDanglingLinks
Сигнатура метода
private static function getDanglingLinks(array $template, array $nodes): array
Возвращает:
array
Описание
Links of the original with an end that is no node of the template. The reverse drops them - it must not invent an edge around the unknown end - so they are left out of the comparison and reported as they are, together with which end is missing. Which nodes the template has is answered by the caller and never asked a second time here: this walk used to look at the root level alone while getNodes() reached every depth, and a link into the activity of a complex wrapper was called dangling because of it - dropped from the obligatory comparison, decided by no criterion, and lost by a round trip that reported nothing. One answer to what a node of the template is keeps the two from drifting apart again.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$template
|
array
|
—
|
—
|
$nodes
|
array
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Internal/AI/Agent/Generator/TemplateReverser/TemplateComparator.php