Метод applyCreation

protected static

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

protected static function applyCreation(Requisite $requisite, Result $result): Result

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

Описание

The answer of a creation: an empty successful {@see Result}, or the refusal as it came. The success is reported through the requisite the caller handed in - it receives the identifier the new record was written under - rather than through the data of the result, which would publish a key of the layer below as part of this contract. It is the way the pipeline domain already reports a creation ({@see \Bitrix\Crm\V2\Public\Command\Category\AddCategoryCommand}).

Параметры

2
Имя Тип По умолчанию Флаги
$requisite Requisite —
—
$result Result —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Public/Command/Requisite/AbstractRequisiteCommand.php
Расположение метода в файле
Строки 177–188

Исходный код

PHP