1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс General
Граф наследования:General:
Base

Открытые члены

 getValue ($settingName)

Открытые статические члены

static createWithUserId (int $userId)
static getDefaultSettings ()
static setSettings (int $groupId, array $settings=[], bool $forInitialize=false)
static getUserSettings (int $userId)
static allowedUserBySimpleNotificationSettings (int $userId, string $notifyType)
static filterAllowedUsersBySimpleNotificationSettings (array $userList, string $notifyType)
static getGroupSettings (int $groupId)
static prepareRawGroupSettings (array $settings)
static filterGroupSettingsByDefault (array $settings)
static updateGroupSettings (int $groupId, array $settings)
static encodeSettings (array $settings)
static decodeSettings (array $rowSettings)
static checkingValues (array $settings)
Открытые статические члены унаследованные от Base
static setSettings (int $groupId, array $settings)

Поля данных

const ENTITY = 'se'
const PRIVACY_RESULT_ALL = 'all'
const PRIVACY_RESULT_CONTACT = 'contact'
const PRIVACY_RESULT_NOBODY = 'nobody'

Защищенные члены

 __construct ()
 setUserId (int $userId)
 fillUserSettings ()

Защищенные статические члены

static filterChunk (array $userList, string $settingName)
static getNotifySettingByType (string $notifyType)
static getUserNotifySchemas (array $userList)
static filterUsersWithSimpleNotifyScheme (array $userList, string $settingName)
static getRedefinedSettings ()

Защищенные данные

 $userId
 $userSettings
Защищенные данные унаследованные от Base
const ENTITY = 'ba'
const SEPARATOR = '|'
const CHUNK_LENGTH = 1000

Статические защищенные данные

static $instanceList = []

Подробное описание

См. определение в файле General.php строка 19

Конструктор(ы)

◆ __construct()

__construct ( )
protected

This class should not be instantiated directly. Use one of the named constructors.

См. определение в файле General.php строка 39

Методы

◆ allowedUserBySimpleNotificationSettings()

allowedUserBySimpleNotificationSettings ( int $userId,
string $notifyType )
static

См. определение в файле General.php строка 220

◆ checkingValues()

checkingValues ( array $settings)
static
Аргументы
array$settings
Возвращает
array
Исключения

Bitrix\Main\ArgumentNullException

Исключения

Bitrix\Main\ArgumentOutOfRangeException

См. определение в файле General.php строка 633

◆ createWithUserId()

createWithUserId ( int $userId)
static

См. определение в файле General.php строка 44

◆ decodeSettings()

decodeSettings ( array $rowSettings)
static

Converts a flat array of templates into an array of general settings

Аргументы
array$rowSettings
Возвращает
array

Переопределяет метод предка Base.

См. определение в файле General.php строка 574

◆ encodeSettings()

encodeSettings ( array $settings)
static

Converts general settings into a flat array, in which the key is a template, and the value is the value of the setting

Аргументы
array$settings
Возвращает
array

Переопределяет метод предка Base.

См. определение в файле General.php строка 538

◆ fillUserSettings()

fillUserSettings ( )
protected

См. определение в файле General.php строка 73

◆ filterAllowedUsersBySimpleNotificationSettings()

filterAllowedUsersBySimpleNotificationSettings ( array $userList,
string $notifyType )
static

См. определение в файле General.php строка 232

◆ filterChunk()

filterChunk ( array $userList,
string $settingName )
staticprotected

См. определение в файле General.php строка 270

◆ filterGroupSettingsByDefault()

filterGroupSettingsByDefault ( array $settings)
static

Filter group settings by default settings

Переопределяет метод предка Base.

См. определение в файле General.php строка 445

◆ filterUsersWithSimpleNotifyScheme()

filterUsersWithSimpleNotifyScheme ( array $userList,
string $settingName )
staticprotected

См. определение в файле General.php строка 357

◆ getDefaultSettings()

getDefaultSettings ( )
static
Возвращает
array
Исключения

Bitrix\Main\ArgumentNullException

Исключения

Bitrix\Main\ArgumentOutOfRangeException

Переопределяет метод предка Base.

См. определение в файле General.php строка 95

◆ getGroupSettings()

getGroupSettings ( int $groupId)
static

Gets the group's notification settings

Исключения
ObjectPropertyException
SystemException
ArgumentException

Переопределяет метод предка Base.

См. определение в файле General.php строка 410

◆ getNotifySettingByType()

getNotifySettingByType ( string $notifyType)
staticprotected

См. определение в файле General.php строка 278

◆ getRedefinedSettings()

getRedefinedSettings ( )
staticprotected

См. определение в файле General.php строка 458

◆ getUserNotifySchemas()

getUserNotifySchemas ( array $userList)
staticprotected
Аргументы
array$userList
Возвращает
array{simple:string, expert:string} must be empty

См. определение в файле General.php строка 299

◆ getUserSettings()

getUserSettings ( int $userId)
static

Gets the user's notification settings

Исключения
ArgumentException
ObjectPropertyException
SystemException

Переопределяет метод предка Base.

См. определение в файле General.php строка 181

◆ getValue()

getValue ( $settingName)
Аргументы
$settingName
Возвращает
mixed

См. определение в файле General.php строка 63

◆ prepareRawGroupSettings()

prepareRawGroupSettings ( array $settings)
static

См. определение в файле General.php строка 437

◆ setSettings()

setSettings ( int $groupId,
array $settings = [],
bool $forInitialize = false )
static

Encodes the received settings and enters them into the database and cache

Исключения
SystemException
ArgumentException

См. определение в файле General.php строка 149

◆ setUserId()

setUserId ( int $userId)
protected

См. определение в файле General.php строка 68

◆ updateGroupSettings()

updateGroupSettings ( int $groupId,
array $settings )
static

Updates the group's notification settings

Аргументы
int$groupId
array$settings
Исключения
Exception

Переопределяет метод предка Base.

См. определение в файле General.php строка 478

Поля

◆ $instanceList

$instanceList = []
staticprotected

См. определение в файле General.php строка 34

◆ $userId

$userId
protected

См. определение в файле General.php строка 28

◆ $userSettings

$userSettings
protected

См. определение в файле General.php строка 31

◆ ENTITY

const ENTITY = 'se'

См. определение в файле General.php строка 21

◆ PRIVACY_RESULT_ALL

const PRIVACY_RESULT_ALL = 'all'

См. определение в файле General.php строка 23

◆ PRIVACY_RESULT_CONTACT

const PRIVACY_RESULT_CONTACT = 'contact'

См. определение в файле General.php строка 24

◆ PRIVACY_RESULT_NOBODY

const PRIVACY_RESULT_NOBODY = 'nobody'

См. определение в файле General.php строка 25


Объявления и описания членов класса находятся в файле: