Метод delete

public

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

public function delete(int $activityId, ActivityOperationContext $operationContext): Result

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

Описание

Removes the activity, or moves it to the recycle bin when the pipeline decides so. The activity is not read here: the step of the delete that loads it also honours the state a system caller may have supplied instead, which is the one way of bypassing the read check.

Параметры

2
Имя Тип По умолчанию Флаги
$activityId int —
—
$operationContext ActivityOperationContext —
—

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

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

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

Исходный код

PHP