Метод applyWriteResult

protected static

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

protected static function applyWriteResult(Category $category, Result $result): Result

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

Описание

The answer of a write: an empty successful {@see Result}, or the refusal as it came. A successful write is reported through the category it was given rather than through the result: the category is filled with what storage now holds - the identifier a new one received, the fields the write did not mention, the ones the domain filled in for it - and the change marks are dropped, so the same object can be handed to the next write without repeating this one. It is the way an item of V2 already reports its write ({@see \Bitrix\Crm\V2\Public\Command\Item\AddItemCommand}).

Параметры

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

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

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

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

Исходный код

PHP