|
static | getByUser (?int $userId=null) |
|
static | find (array $params=[], ?Context $context=null) |
|
static | getTypes () |
|
static | getType ($chatData) |
|
static | getRelation ($chatId, $params=[]) |
|
static | mute ($chatId, $action, $userId=null) |
|
static | getMessageCount ($chatId, $userId=null) |
|
static | hasAccess ($chatId) |
|
static | getMessages ($chatId, $userId=null, $options=Array()) |
|
static | getUsers ($chatId, $options=[]) |
|
static | getById ($id, $params=array()) |
|
static | getList ($params=array()) |
|
static | formatChatData ($chat) |
|
static | getListParams ($params) |
|
static | toJson ($array) |
|
static | isUserInChat ($chatId, $userId=0) |
|
static | isUserKickedFromChat ($chatId, $userId=0) |
|
static | checkReplicaDeprecatedAgent () |
|
static | isActionAllowed ($dialogId, $action, $entityType=null) |
|
static | getOwnerById ($dialogId) |
|
static | fillCounterData (array $chats) |
|
См. определение в файле NotifyChat.php строка 23
◆ add()
add |
( |
array | $params, |
|
|
?Context | $context = null ) |
◆ addIndex()
◆ allowMention()
Allows to send mention notification.
- Возвращает
- bool
См. определение в файле NotifyChat.php строка 39
◆ checkAccessWithoutCaching()
checkAccessWithoutCaching |
( |
int | $userId | ) |
|
|
protected |
◆ dropAll()
◆ dropAllConfirmByTag()
dropAllConfirmByTag |
( |
Message | $message | ) |
|
|
protected |
◆ dropOtherUserNotificationByTag()
dropOtherUserNotificationByTag |
( |
Message | $message | ) |
|
|
protected |
If we have other notifications with the same tag, we need to get USERS from the old notifications, then merge it with AUTHOR_ID or create new USERS array with AUTHOR_ID then delete old notifications.
- Аргументы
-
- Возвращает
- void
См. определение в файле NotifyChat.php строка 429
◆ find()
static find |
( |
array | $params = [], |
|
|
?Context | $context = null ) |
|
static |
Looks for notification channel for user
- Аргументы
-
array | $params |
[
(int) TO_USER_ID
]
|
- Возвращает
- Result
См. определение в файле NotifyChat.php строка 85
◆ getByUser()
static getByUser |
( |
?int | $userId = null | ) |
|
|
static |
◆ getDefaultType()
◆ getStartId()
getStartId |
( |
?int | $userId = null | ) |
|
◆ prepareConfirm()
◆ prepareParams()
prepareParams |
( |
array | $params = [] | ) |
|
|
protected |
◆ sendMessage()
sendMessage |
( |
| $message, |
|
|
| $sendingConfig = null ) |
Provides message sending process.
- Аргументы
-
Message | string | array | $message | |
SendingConfig | array | null | $sendingConfig | |
- Возвращает
- Result
См. определение в файле NotifyChat.php строка 185
◆ sendPushDropAll()
◆ updateIndex()
◆ validateMessage()
- Аргументы
-
Message | $message | |
SendingConfig | $sendingServiceConfig | |
- Возвращает
- Result
См. определение в файле NotifyChat.php строка 347