Метод add

public

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

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

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

Описание

Stores a new activity and returns its id. The values of the model are taken as they are: what the repository adds is the storage's own - the timestamps, the derived `STATUS` and `IS_HANDLEABLE`, the deadline sentinel, the owner columns kept in sync with the bindings, and the defaults of the columns the table declares as not nullable.

Параметры

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

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

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

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

Исходный код

PHP