Bitrix-D7 22.6
 
Загрузка...
Поиск...
Не найдено
Класс General
+ Граф наследования:General:

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

 getValue ($settingName)
 

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

static createWithUserId (int $userId)
 
static getDefaultSettings ()
 
static setSettings (int $groupId, array $settings)
 
static getUserSettings (int $userId)
 
static allowedUserBySimpleNotificationSettings (int $userId, string $notifyType)
 
static filterAllowedUsersBySimpleNotificationSettings (array $userList, string $notifyType)
 
static getGroupSettings (int $groupId)
 
static updateGroupSettings (int $groupId, array $settings)
 
static encodeSettings (array $settings)
 
static decodeSettings (array $rowSettings)
 
static checkingValues (array $settings)
 
static getDefaultSettings ()
 
static getUserSettings (int $userId)
 
static getGroupSettings (int $groupId)
 
static setSettings (int $groupId, array $settings)
 
static updateGroupSettings (int $groupId, array $settings)
 
static decodeSettings (array $rowSettings)
 

Открытые атрибуты

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 encodeSettings (array $settings)
 

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

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

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

static $instanceList = []
 

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

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

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

◆ __construct()

__construct ( )
protected

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

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

Методы

◆ allowedUserBySimpleNotificationSettings()

static allowedUserBySimpleNotificationSettings ( int  $userId,
string  $notifyType 
)
static

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

◆ checkingValues()

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

Bitrix\Main\ArgumentNullException

Исключения

Bitrix\Main\ArgumentOutOfRangeException

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

◆ createWithUserId()

static createWithUserId ( int  $userId)
static

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

◆ decodeSettings()

static decodeSettings ( array  $rowSettings)
static

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

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

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

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

◆ encodeSettings()

static 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 строка 498

◆ fillUserSettings()

fillUserSettings ( )
protected

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

◆ filterAllowedUsersBySimpleNotificationSettings()

static filterAllowedUsersBySimpleNotificationSettings ( array  $userList,
string  $notifyType 
)
static

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

◆ filterChunk()

static filterChunk ( array  $userList,
string  $settingName 
)
staticprotected

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

◆ filterUsersWithSimpleNotifyScheme()

static filterUsersWithSimpleNotifyScheme ( array  $userList,
string  $settingName 
)
staticprotected

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

◆ getDefaultSettings()

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

Bitrix\Main\ArgumentNullException

Исключения

Bitrix\Main\ArgumentOutOfRangeException

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

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

◆ getGroupSettings()

static getGroupSettings ( int  $groupId)
static

Gets the group's notification settings

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

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

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

◆ getNotifySettingByType()

static getNotifySettingByType ( string  $notifyType)
staticprotected

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

◆ getUserNotifySchemas()

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

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

◆ getUserSettings()

static getUserSettings ( int  $userId)
static

Gets the user's notification settings

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

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

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

◆ getValue()

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

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

◆ setSettings()

static setSettings ( int  $groupId,
array  $settings 
)
static

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

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

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

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

◆ setUserId()

setUserId ( int  $userId)
protected

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

◆ updateGroupSettings()

static updateGroupSettings ( int  $groupId,
array  $settings 
)
static

Updates the group's notification settings

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

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

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

Данные класса

◆ $instanceList

$instanceList = []
staticprotected

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

◆ $userId

$userId
protected

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

◆ $userSettings

$userSettings
protected

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

◆ ENTITY

const ENTITY = 'se'

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

◆ PRIVACY_RESULT_ALL

const PRIVACY_RESULT_ALL = 'all'

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

◆ PRIVACY_RESULT_CONTACT

const PRIVACY_RESULT_CONTACT = 'contact'

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

◆ PRIVACY_RESULT_NOBODY

const PRIVACY_RESULT_NOBODY = 'nobody'

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