См. определение в файле Notification.php строка 17
◆ __construct()
__construct |
( |
string | $module, |
|
|
string | $name ) |
◆ checkDisableFeature()
checkDisableFeature |
( |
string | $feature | ) |
|
◆ decodeSettings()
decodeSettings |
( |
array | $rowSettings | ) |
|
|
static |
Converts a flat array of templates into an array of notification schemes
- Аргументы
-
- Возвращает
- array
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 692
◆ encodeSettings()
encodeSettings |
( |
array | $settings | ) |
|
|
static |
Converts notification settings into a flat array, in which the key is a template, and the value is the value of the setting
- Аргументы
-
- Возвращает
- array
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 733
◆ filterAllowedUsers()
filterAllowedUsers |
( |
array | $userList, |
|
|
string | $type ) |
Filters the list of users to whom can send a notification
- Исключения
-
SqlQueryException | |
ArgumentException | |
SystemException | |
См. определение в файле Notification.php строка 152
◆ filterGroupSettingsByDefault()
filterGroupSettingsByDefault |
( |
array | $settings | ) |
|
|
static |
Filter group settings by default settings
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 515
◆ getDefaultFeature()
getDefaultFeature |
( |
string | $feature | ) |
|
◆ getDefaultSettings()
The method get the full notification scheme (from all modules)
- Возвращает
- array
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 347
◆ getEventNames()
◆ getGroupSettings()
getGroupSettings |
( |
int | $groupId | ) |
|
|
static |
Gets the group's notification settings
- Исключения
-
ObjectPropertyException | |
SystemException | |
ArgumentException | |
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 488
◆ getLifetime()
◆ getSimpleNotifySettings()
getSimpleNotifySettings |
( |
array | $generalSettings | ) |
|
|
static |
◆ getUserSettings()
getUserSettings |
( |
int | $userId | ) |
|
|
static |
Gets the user's notification settings
- Исключения
-
ArgumentException | |
ObjectPropertyException | |
SystemException | |
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 445
◆ getValue()
getValue |
( |
int | $userId, |
|
|
string | $type ) |
◆ isAllowed()
isAllowed |
( |
int | $userId, |
|
|
string | $type ) |
Determines whether a notification can be sent to the user
- Исключения
-
См. определение в файле Notification.php строка 72
◆ setModule()
setModule |
( |
string | $module | ) |
|
◆ setName()
◆ setSettings()
setSettings |
( |
int | $groupId, |
|
|
array | $settings = [], |
|
|
bool | $forInitialize = false ) |
|
static |
Sets the group's notification settings
- Исключения
-
SystemException | |
ArgumentException | |
См. определение в файле Notification.php строка 624
◆ updateGroupSettings()
updateGroupSettings |
( |
int | $groupId, |
|
|
array | $settings ) |
|
static |
Updates the group's notification settings
- Исключения
-
SystemException | |
ArgumentException | |
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 543
◆ $defaultSettings
◆ ENTITY
◆ MAIL
◆ MODULE
◆ NAME
◆ PUSH
◆ SITE
◆ TYPE
◆ XMPP
Объявления и описания членов класса находятся в файле: