Метод create
Сигнатура метода
public static function create(int $typeId, string $providerId, Context $context, Model $model): ?Item
Возвращает:
?Item
Описание
Create timeline item for Activity based on Item\Configurable implementation The two items chosen by the legacy type of an activity - a letter and a call - belong to no provider and are decided here. Everything else is the provider's own item: which providers build one is declared by their descriptors in the registry, and building it is asked of the provider itself.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$typeId
|
int
|
—
|
—
|
$providerId
|
string
|
—
|
—
|
$context
|
Context
|
—
|
—
|
$model
|
Model
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/Service/Timeline/Item/Factory/ConfigurableActivity.php
Расположение метода в файле
Строки
31–57