Метод createSharedPreset

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

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

Путь к исходному файлу строки 445–508
~/bitrix/modulesim/lib/Configuration/Configuration.php

Исходный код

PHP
public static

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

public static function createSharedPreset(array $accessCodes, string $presetName, int $creatorId, array $settings = [], int $sort = self::DEFAULT_SORT, bool $force = false): ?int

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

Описание

Creates a general preset for a department or a list of users by access codes with the selected priority, enters the settings into the database and sets the resulting group to users if the priority of their current group is not greater than this one. If force is true, the priority of the current presets is not taken into account

Параметры

6
Имя Тип По умолчанию Флаги
$accessCodes array -
-
$presetName string -
-
$creatorId int -
-
$settings array []
-
$sort int self::DEFAULT_SORT
-
$force bool false
-