Метод validateChild

public static

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

public static function validateChild($childActivity, $bFirstChild = false)

Описание

Composition of the children of an activity, checked on the one point every entry into a template passes ({@see CBPWorkflowTemplateLoader::validateTemplate()}): the transport of the designer, an import, REST and the AI converter are limited alike. A node served by the unified settings panel - the very verdict that opens its container of children ({@see self::completeWithUnifiedPanelProperties()}) - keeps the white list of that panel ({@see Bizproc\Public\Activity\BaseComplexActivity::validateUnifiedPanelChild()}). Every other activity answers as it always has, without any restriction, and pays a memoized descriptor read for the answer - asked at all only for an activity the template really gave children to. The document context the white list is resolved in is not a parameter of this method: activities of every module and of every portal override it with a signature of their own, so a parameter added here would make every one of them incompatible (a fatal on include). The validation pass publishes the context instead ({@see Bizproc\Internal\Service\Activity\ChildValidationContext}).

Параметры

2
Имя Тип По умолчанию Флаги
$childActivity — —
—
$bFirstChild — false
—

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/classes/general/activity.php
Расположение метода в файле
Строки 2448–2465

Исходный код

PHP