|
static | getDefaultPresetId () |
static | createDefaultPreset () |
static | getUserPreset (int $userId) |
static | getPreset (int $id) |
static | getDefaultUserPreset () |
static | getUserPresetIds (int $userId) |
static | getListAvailablePresets (int $userId) |
static | createUserPreset (int $userId, array $settings=[]) |
static | restoreBindings (int $userId) |
static | createSharedPreset (array $accessCodes, string $presetName, int $creatorId, array $settings=[], int $sort=self::DEFAULT_SORT, bool $force=false) |
static | updateNameSharedPreset (int $presetId, int $modifyId, string $newName) |
static | updatePresetSettings (int $presetId, int $modifyId, array $settings) |
static | deletePreset (int $presetId) |
static | setExistingPresetToUsers (int $presetId, array $userList, bool $force=false) |
static | chooseExistingPreset (int $presetId, int $userId) |
static | getUserPresetFromCache (int $userId) |
static | cleanUsersCache (array $usersId) |
static | cleanUserCache (int $userId) |
static | cleanAllCache () |
См. определение в файле Configuration.php строка 25
◆ chooseExistingPreset()
chooseExistingPreset |
( |
int | $presetId, |
|
|
int | $userId ) |
|
static |
Sets a different preset for the user
- Исключения
-
См. определение в файле Configuration.php строка 659
◆ cleanAllCache()
◆ cleanUserCache()
cleanUserCache |
( |
int | $userId | ) |
|
|
static |
- См. также
- CacheManager::getUserCache()
- Аргументы
-
- Возвращает
- void
См. определение в файле Configuration.php строка 1017
◆ cleanUsersCache()
cleanUsersCache |
( |
array | $usersId | ) |
|
|
static |
◆ createDefaultPreset()
◆ createPersonalGroup()
createPersonalGroup |
( |
int | $creator | ) |
|
|
staticprotected |
Creates records about a personal group in the database
- Исключения
-
ObjectPropertyException | |
SystemException | |
ArgumentException | |
Exception | |
См. определение в файле Configuration.php строка 834
◆ createSharedGroup()
createSharedGroup |
( |
string | $name, |
|
|
array | $accessCodes, |
|
|
int | $creator, |
|
|
int | $sort = self::DEFAULT_SORT ) |
|
staticprotected |
Creates records about a shared group in the database
- Исключения
-
SystemException | |
ArgumentException | |
Exception | |
См. определение в файле Configuration.php строка 798
◆ createSharedPreset()
createSharedPreset |
( |
array | $accessCodes, |
|
|
string | $presetName, |
|
|
int | $creatorId, |
|
|
array | $settings = [], |
|
|
int | $sort = self::DEFAULT_SORT, |
|
|
bool | $force = false ) |
|
static |
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
- Аргументы
-
array | $accessCodes | |
array | $settings | |
string | $presetName | |
int | $creatorId | |
int | $sort | |
bool | $force | |
- Возвращает
- int|null
- Исключения
-
ArgumentException | |
ObjectPropertyException | |
SystemException | |
См. определение в файле Configuration.php строка 445
◆ createUserPreset()
createUserPreset |
( |
int | $userId, |
|
|
array | $settings = [] ) |
|
static |
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
- Исключения
-
ObjectPropertyException | |
SystemException | |
ArgumentException | |
Exception | |
См. определение в файле Configuration.php строка 363
◆ deleteGroup()
deleteGroup |
( |
int | $groupId | ) |
|
|
staticprotected |
Deletes all rows associated with this group
- Исключения
-
См. определение в файле Configuration.php строка 774
◆ deletePreset()
deletePreset |
( |
int | $presetId | ) |
|
|
static |
◆ getDefaultPresetId()
◆ getDefaultUserPreset()
◆ getListAvailablePresets()
getListAvailablePresets |
( |
int | $userId | ) |
|
|
static |
Gets a list of presets available to the user
- Аргументы
-
- Возвращает
- array
- Исключения
-
ArgumentException | |
ObjectPropertyException | |
SystemException | |
См. определение в файле Configuration.php строка 317
◆ getPreset()
Gets a preset by its id
- Аргументы
-
- Возвращает
- array{id: int, name: string, sort: int, settings: array}
- Исключения
-
ArgumentException | |
ObjectPropertyException | |
SystemException | |
См. определение в файле Configuration.php строка 234
◆ getUserPreset()
getUserPreset |
( |
int | $userId | ) |
|
|
static |
Gets the current preset of the user
- См. также
- \Bitrix\Im\V2\Settings\UserConfiguration
- Аргументы
-
- Возвращает
- array{notify: array, general: array}
- Исключения
-
ArgumentException | |
ObjectPropertyException | |
SystemException | |
См. определение в файле Configuration.php строка 108
◆ getUserPresetFromCache()
getUserPresetFromCache |
( |
int | $userId | ) |
|
|
static |
◆ getUserPresetIds()
getUserPresetIds |
( |
int | $userId | ) |
|
|
static |
- Аргументы
-
- Возвращает
- array{notify: int, general: int}|null
- Исключения
-
ArgumentException | |
ObjectPropertyException | |
SystemException | |
См. определение в файле Configuration.php строка 288
◆ restoreBindings()
restoreBindings |
( |
int | $userId | ) |
|
|
static |
Restores the missing bindings between the user and his current preset settings in the b_im_option_user table
- Аргументы
-
- Возвращает
- int
См. определение в файле Configuration.php строка 401
◆ setExistingPresetToUsers()
setExistingPresetToUsers |
( |
int | $presetId, |
|
|
array | $userList, |
|
|
bool | $force = false ) |
|
static |
Sets an existing preset to the users taking into account or not the priority of their current preset
- Исключения
-
ObjectPropertyException | |
ArgumentException | |
SystemException | |
См. определение в файле Configuration.php строка 607
◆ updateNameSharedPreset()
updateNameSharedPreset |
( |
int | $presetId, |
|
|
int | $modifyId, |
|
|
string | $newName ) |
|
static |
Updates the name of the shared preset by its ID, also updates the date of change and who changed the preset
- Исключения
-
См. определение в файле Configuration.php строка 515
◆ updatePresetSettings()
updatePresetSettings |
( |
int | $presetId, |
|
|
int | $modifyId, |
|
|
array | $settings ) |
|
static |
Updates the preset settings by its ID, also updates the date of change and who changed the preset
- Исключения
-
SystemException | |
ArgumentException | |
Exception | |
См. определение в файле Configuration.php строка 550
◆ $defaultPresetId
◆ CACHE_DIR
const CACHE_DIR = '/im/option/' |
|
protected |
◆ CACHE_NAME
const CACHE_NAME = 'user_preset' |
|
protected |
◆ CACHE_TTL
const CACHE_TTL = 31536000 |
|
protected |
◆ DEFAULT_PRESET_NAME
const DEFAULT_PRESET_NAME = 'default' |
◆ DEFAULT_PRESET_SETTING_NAME
const DEFAULT_PRESET_SETTING_NAME = 'default_configuration_preset' |
◆ DEFAULT_SORT
◆ GENERAL_GROUP
const GENERAL_GROUP = 'general' |
◆ NOTIFY_GROUP
const NOTIFY_GROUP = 'notify' |
◆ USER_PRESET_SORT
const USER_PRESET_SORT = 1000000 |
Объявления и описания членов класса находятся в файле: