Метод getStateById

public

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

public function getStateById(int $id): ?array

Возвращает: ?array

Описание

The whole stored state of the activity - the model, the serialized fields and the storage columns neither of them owns - or null when there is no row with that id. WHY THE THREE TOGETHER. The pipelines of an update and of a delete need a state, not a model: the provider of an update is resolved from the legacy type of the stored row, the wrapper of a legacy provider projects all three parts back into the field array it hands over, and a state assembled out of three separate reads would be three rows as they stood at three moments. The columns of the search content and of the storage elements are not part of it - they belong to their own writers, exactly as they do on the way back.

Параметры

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

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Repository/Activity/ActivityRepositoryInterface.php
Расположение метода в файле
Строки 56–56

Исходный код

PHP