Метод update

public

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

public function update(Activity $activity, ?ProviderPayload $payload = null, ?StorageFieldTransit $transit = null): void

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

Описание

Stores the changed fields of the activity, plus the values the payload and the transit carry. Only what the caller touched is written: the fields the model marked as changed, and nothing else. A write with nothing to change is a no-op, and the columns legacy refuses to change on an update - the creation time, the author, the provider and the type of the activity - are dropped here too.

Параметры

3
Имя Тип По умолчанию Флаги
$activity Activity —
—
$payload ?ProviderPayload null
—
$transit ?StorageFieldTransit null
—

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

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

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

Исходный код

PHP