Метод takeName

public

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

public function takeName(string $name): void

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

Описание

Claims a name for an activity of this build. A name the build already gave out is refused instead of being written a second time: the links of the template point at a node by its name, so the second node of that name would take over the wiring of the first one, and nothing downstream would notice - the comparison of a round trip holds the nodes of two templates against each other by name as well. Only a name the source states can arrive here twice: {@see self::generateNextId()} steps over the taken ones. The caller claims a name of its own the same way - the activity a complex wrapper runs inside itself is named by the source and written into the template by TemplateBuilder, and it is an activity of the template like any other.

Параметры

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

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

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

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

Исходный код

PHP