Метод tryPostpone

public

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

public function tryPostpone(int $offsetSeconds, Activity $activity, ActivityChangeSet $changes): Result

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

Описание

Moves an activity of this kind forward in time by the given number of seconds. THE SHIFT IS WRITTEN ONTO THE GIVEN ACTIVITY. Mutating it is the whole channel of the move, the same device the validation of a provider uses in place of the by-reference contract of legacy, and the setters the model needs for it exist. The deadline is not among the fields a provider may shift this way - see the note on postponing above. THE SET OF CHANGES RECORDS THE OUTCOME, it does not carry the intent. It is passed so that a provider that has moved a field can say what its two values were; nothing put into it moves anything, and a shift expressed only there is a shift that never happened. The result likewise reports success and carries no fields: a failing one refuses the postponement.

Параметры

3
Имя Тип По умолчанию Флаги
$offsetSeconds int —
—
$activity Activity —
—
$changes ActivityChangeSet —
—

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

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

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

Исходный код

PHP