Метод completeThroughLifecycleService

private static

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

private static function completeThroughLifecycleService(int $ID, bool $isCompleted, mixed $options, ?CompletionStatus $completionStatus = null): bool

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

Описание

A completion through the operation of the service, which is where every rule of a completion lives: the state the completion is compared with, the early successful return where there is nothing to change (item H1), the hook of the provider and the update that performs the write and all of its effects. THE STATUS OF THE COMPLETION IS PASSED ON ONLY WHERE THE CALLER NAMED ONE. An ordinary completion names none, so the check of the fields of the update derives it from the state before the write - which is what keeps an automatically completed activity automatically completed.

Параметры

4
Имя Тип По умолчанию Флаги
$ID int —
—
$isCompleted bool —
—
$options mixed —
—
$completionStatus ?CompletionStatus null
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/classes/general/crm_activity.php
Расположение метода в файле
Строки 1749–1790

Исходный код

PHP