См. определение в файле Notification.php строка 17
◆ __construct()
__construct |
( |
string |
$module, |
|
|
string |
$name |
|
) |
| |
◆ checkDisableFeature()
checkDisableFeature |
( |
string |
$feature | ) |
|
◆ decodeSettings()
static decodeSettings |
( |
array |
$rowSettings | ) |
|
|
static |
Converts a flat array of templates into an array of notification schemes
- Аргументы
-
- Возвращает
- array
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 631
◆ encodeSettings()
static 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 строка 672
◆ filterAllowedUsers()
filterAllowedUsers |
( |
array |
$userList, |
|
|
string |
$type |
|
) |
| |
Filters the list of users to whom can send a notification
- Исключения
-
SqlQueryException | |
ArgumentException | |
SystemException | |
См. определение в файле Notification.php строка 152
◆ getDefaultFeature()
getDefaultFeature |
( |
string |
$feature | ) |
|
◆ getDefaultSettings()
static getDefaultSettings |
( |
| ) |
|
|
static |
The method get the full notification scheme (from all modules)
- Возвращает
- array
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 343
◆ getEventNames()
◆ getGroupSettings()
static getGroupSettings |
( |
int |
$groupId | ) |
|
|
static |
Gets the group's notification settings
- Исключения
-
ObjectPropertyException | |
SystemException | |
ArgumentException | |
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 450
◆ getLifetime()
◆ getUserSettings()
static getUserSettings |
( |
int |
$userId | ) |
|
|
static |
Gets the user's notification settings
- Исключения
-
ArgumentException | |
ObjectPropertyException | |
SystemException | |
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 407
◆ 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()
static setSettings |
( |
int |
$groupId, |
|
|
array |
$settings |
|
) |
| |
|
static |
Sets the group's notification settings
- Исключения
-
SystemException | |
ArgumentException | |
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 564
◆ updateGroupSettings()
static updateGroupSettings |
( |
int |
$groupId, |
|
|
array |
$settings |
|
) |
| |
|
static |
Updates the group's notification settings
- Исключения
-
SystemException | |
ArgumentException | |
Переопределяет метод предка Base.
См. определение в файле Notification.php строка 483
◆ $defaultSettings
◆ ENTITY
◆ MAIL
◆ MODULE
◆ NAME
◆ PUSH
◆ SITE
◆ TYPE
◆ XMPP