Метод createUserPreset
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
363–392
~/bitrix/modulesim/lib/Configuration/Configuration.php
Исходный код
Сигнатура метода
public static function createUserPreset(int $userId, array $settings = []): int
Возвращает:
int
Описание
Creates a personal preset of the user with the maximum priority, sets the settings in the database and exposes the resulting preset to the user
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$userId
|
int
|
-
|
-
|
$settings
|
array
|
[]
|
-
|