Метод getNodeFields

private static

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

private static function getNodeFields(array $activity): array

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

Описание

Data of the node itself the comparison holds against the rebuilt node next to the properties of the activity: what the node is, whether it is active, and what it is called on the canvas. None is a property of the activity, and the title is no field of the visual descriptor - TPL-03 keeps titles out of it - so each is named by the key that carries it and the report says at once which one moved. The Type is here because the nodes of the two templates are matched by their name: a type resolved to another activity than before (ActivityRegistry::TYPE_MAP) would otherwise leave the report clean while the agent runs something else. Activated is compared against 'Y' when absent because every node the builder creates is active; an explicit 'N' changes whether the activity runs and cannot be dropped. The canvas title is compared as it stands, without the excuse the Title of the activity has: the build gives a canvas title to every node it creates. A title the round trip did not carry - emptied, or left to the Title of the activity - goes into the shipped bytes and therefore into the revision of the agent. A node drawn nowhere, the inner activity of a complex wrapper, states no title on either side and stays out.

Параметры

1
Имя Тип По умолчанию Флаги
$activity array —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/AI/Agent/Generator/TemplateReverser/TemplateComparator.php
Расположение метода в файле
Строки 961–981

Исходный код

PHP