Метод add
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
183–197
~/bitrix/modulesim/lib/V2/Recent/Initializer.php
Исходный код
Сигнатура метода
protected static function add(int $targetId, SourceType $sourceType, ?int $sourceId = null, bool $isFirstInit = false): Result
Возвращает:
Result
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$targetId
|
int
|
-
|
-
|
$sourceType
|
SourceType
|
-
|
-
|
$sourceId
|
?int
|
null
|
-
|
$isFirstInit
|
bool
|
false
|
-
|