|
| __construct (?int $userId=null) |
|
| readTo (Message $message) |
|
| read (MessageCollection $messages, Chat $chat) |
|
| readNotifications (MessageCollection $messages, array $userByChatId) |
|
| readAllInChat (int $chatId) |
|
| readAll () |
|
| unreadTo (Message $message) |
|
| unreadNotifications (MessageCollection $messages, Relation $relation) |
|
| markNotificationUnread (Message $message, RelationCollection $relations) |
|
| markMessageUnread (Message $message, RelationCollection $relations) |
|
| markRecentUnread (Message $message) |
|
| getCountersForUsers (Message $message, RelationCollection $relations) |
|
| onAfterMessageSend (Message $message, RelationCollection $relations, bool $withoutCounters=false) |
|
| onAfterNotificationSend (Message $message, Relation $relation) |
|
| deleteByMessageId (int $messageId, ?array $invalidateCacheUsers=null) |
|
| deleteByChatId (int $chatId) |
|
| getReadStatusesByMessageIds (array $messageIds) |
|
| getViewStatusesByMessageIds (array $messageIds) |
|
| getLastIdByChatId (int $chatId) |
|
| getLastMessageIdInChat (int $chatId) |
|
| getChatMessageStatus (int $chatId) |
|
| getCounterService () |
|
| getViewedService () |
|
| setLastIdForRead (int $lastId, int $chatId) |
|
| setContext (?Context $context) |
|
См. определение в файле ReadService.php строка 23
◆ __construct()
__construct |
( |
?int | $userId = null | ) |
|
◆ deleteByChatId()
deleteByChatId |
( |
int | $chatId | ) |
|
◆ deleteByMessageId()
deleteByMessageId |
( |
int | $messageId, |
|
|
?array | $invalidateCacheUsers = null ) |
◆ getChatMessageStatus()
getChatMessageStatus |
( |
int | $chatId | ) |
|
◆ getCounterService()
◆ getCountersForUsers()
Send a push about counter changes.
- Аргументы
-
Message | $message | |
RelationCollection | $relations | |
- Возвращает
- array
См. определение в файле ReadService.php строка 230
◆ getLastIdByChatId()
getLastIdByChatId |
( |
int | $chatId | ) |
|
◆ getLastMessageIdInChat()
getLastMessageIdInChat |
( |
int | $chatId | ) |
|
◆ getReadStatusesByMessageIds()
getReadStatusesByMessageIds |
( |
array | $messageIds | ) |
|
◆ getViewedService()
◆ getViewStatusesByMessageIds()
getViewStatusesByMessageIds |
( |
array | $messageIds | ) |
|
◆ markMessageUnread()
Marks message as unread and reads messages up to the sent message accept author.
- Аргументы
-
Message | $message | |
RelationCollection | $relations | |
- Возвращает
- self
См. определение в файле ReadService.php строка 204
◆ markNotificationUnread()
Marks notification as unread.
- Аргументы
-
Message | $message | |
RelationCollection | $relations | |
- Возвращает
- self
См. определение в файле ReadService.php строка 191
◆ markRecentUnread()
markRecentUnread |
( |
Message | $message | ) |
|
Mark chat unread in Recent.
- Аргументы
-
- Возвращает
- $this
См. определение в файле ReadService.php строка 217
◆ onAfterMessageSend()
Returns unread counters for the rest answer.
- Аргументы
-
Message | $message | |
RelationCollection | $relations | |
- Возвращает
- Result
См. определение в файле ReadService.php строка 242
◆ onAfterNotificationSend()
◆ read()
◆ readAll()
◆ readAllInChat()
readAllInChat |
( |
int | $chatId | ) |
|
◆ readNotifications()
◆ readTo()
◆ setContext()
◆ setLastIdForRead()
setLastIdForRead |
( |
int | $lastId, |
|
|
int | $chatId ) |
◆ unreadNotifications()
◆ unreadTo()
◆ $counterService
◆ $viewedService