Метод validateChild
Сигнатура метода
public static function validateChild($childActivity, $bFirstChild = false, $childActivityData = [])
Описание
A node of the process may own children of its own in two shapes, and in no other: a flow composite activity, which owns them by its class, and a node served by the unified settings panel, whose container of children the panel opens ({@see CBPActivity::isServedByUnifiedPanel()}) - the very verdict that opens that container at runtime and keeps the white list of what may go into it. What is inside such a node is answered by the node itself on this same pass of {@see CBPWorkflowTemplateLoader::validateTemplate()}, so relaxing the root opens no arbitrary child. The verdict is asked first because it costs a memoized read of the descriptor, while the shape below it costs loading the class of the child and building an instance of it.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$childActivity
|
—
|
—
|
—
|
$bFirstChild
|
—
|
false
|
—
|
$childActivityData
|
—
|
[]
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/install/activities/bitrix/nodeworkflowactivity/nodeworkflowactivity.php