$counters | CounterService | protected |
$countersByChatIds | CounterService | protected |
$staticChatsCounterCache | CounterService | protectedstatic |
$staticCounterCache | CounterService | protectedstatic |
$staticSpecificChatsCounterCache | CounterService | protectedstatic |
__construct(?int $userId=null) | CounterService | |
addCollection(MessageCollection $messages, Relation $relation) | CounterService | |
addForEachUser(Message $message, RelationCollection $relations) | CounterService | |
addStartingFrom(int $messageId, Relation $relation) | CounterService | |
CACHE_CHATS_COUNTERS_NAME | CounterService | protected |
CACHE_NAME | CounterService | protected |
CACHE_PATH | CounterServiceLegacy | protected |
CACHE_TTL | CounterService | protected |
clearCache(?int $userId=null) | CounterService | static |
countUnreadChats() | CounterServiceLegacy | protected |
countUnreadMessages(?array $chatIds=null) | CounterServiceLegacy | protected |
DEFAULT_COUNTERS | CounterServiceLegacy | protected |
DELAY_DELETION_COUNTERS_OF_FIRED_USER | CounterService | protected |
deleteAll(bool $withNotify=false) | CounterService | |
deleteByChatId(int $chatId) | CounterService | |
deleteByMessageIdForAll(int $messageId, ?array $invalidateCacheUsers=null) | CounterService | |
deleteByMessageIdsForAll(array $messageIds, ?array $invalidateCacheUsers=null) | CounterService | |
deleteCountersOfFiredUserAgent(int $userId) | CounterService | static |
deleteExpiredCountersAgent() | CounterService | static |
deleteTo(Message $message) | CounterService | |
EXPIRY_INTERVAL | CounterService | protected |
get() | CounterService | |
getAdditionalCounters(?array $chatIds=null, bool $forCurrentUser=true) | CounterService | protected |
getByChat(int $chatId) | CounterService | |
getByChatForEachUsers(int $chatId, ?array $userIds=null) | CounterService | |
getCacheForChatsCounters() | CounterService | protected |
getCacheForPreparedCounters() | CounterService | protected |
getCountersForEachChat(?array $chatIds=null, bool $forCurrentUser=true) | CounterService | protected |
getCountUnreadMessagesByChatId(int $chatId) | CounterService | protected |
getCountUnreadMessagesByChatIdForEachUsers(int $chatId, ?array $userIds=null) | CounterService | protected |
getForEachChat(?array $chatIds=null) | CounterService | |
getForNotifyChat() | CounterService | |
getForNotifyChats(array $chatIds) | CounterService | |
getIdFirstUnreadMessage(int $chatId) | CounterService | |
getIdFirstUnreadMessageForEachChats(array $chatIds) | CounterService | |
getMapChatToDialog(array $privateChatIds) | CounterServiceLegacy | protected |
getTotal() | CounterService | |
getTotalCountUnreadMessages() | CounterService | protected |
getUnreadChats(?bool $isMuted=null) | CounterServiceLegacy | protected |
haveInSpecificChatsCache(array $chatIds) | CounterService | protected |
onAfterUserUpdate(array $fields) | CounterService | static |
onFireUser(int $userId) | CounterService | protectedstatic |
onHireUser(int $userId) | CounterService | protectedstatic |
saveChatsCountersInCache(Cache $cache) | CounterService | protected |
savePreparedCountersInCache(Cache $cache) | CounterService | protected |
saveSpecificChatsCountersInCache(array $chatIds) | CounterService | protected |
setFromChat(int $id, int $count) | CounterService | protected |
setFromCopilot(int $id, int $count) | CounterService | protected |
setFromDialog(int $id, int $count) | CounterServiceLegacy | protected |
setFromLine(int $id, int $count) | CounterService | protected |
setFromMutedChat(int $id, int $count) | CounterService | protected |
setFromNotify(int $count) | CounterService | protected |
setUnreadChat(int $id, bool $isMuted) | CounterService | protected |
setUnreadDialog(int $id) | CounterServiceLegacy | protected |
updateIsMuted(int $chatId, string $isMuted) | CounterService | |