См. определение в файле CounterService.php строка 25
◆ __construct()
__construct |
( |
?int | $userId = null | ) |
|
◆ addCollection()
◆ addForEachUser()
◆ addStartingFrom()
addStartingFrom |
( |
int | $messageId, |
|
|
Relation | $relation ) |
◆ clearCache()
static clearCache |
( |
?int | $userId = null | ) |
|
|
static |
◆ countUnreadChats()
◆ countUnreadMessages()
countUnreadMessages |
( |
?array | $chatIds = null | ) |
|
|
protected |
◆ deleteAll()
deleteAll |
( |
bool | $withNotify = false | ) |
|
◆ deleteByChatId()
deleteByChatId |
( |
int | $chatId | ) |
|
◆ deleteByMessageIdForAll()
deleteByMessageIdForAll |
( |
int | $messageId, |
|
|
?array | $invalidateCacheUsers = null ) |
◆ deleteByMessageIdsForAll()
deleteByMessageIdsForAll |
( |
array | $messageIds, |
|
|
?array | $invalidateCacheUsers = null ) |
◆ deleteCountersOfFiredUserAgent()
static deleteCountersOfFiredUserAgent |
( |
int | $userId | ) |
|
|
static |
◆ deleteExpiredCountersAgent()
static deleteExpiredCountersAgent |
( |
| ) |
|
|
static |
◆ deleteTo()
◆ get()
◆ getAdditionalCounters()
getAdditionalCounters |
( |
?array | $chatIds = null, |
|
|
bool | $forCurrentUser = true ) |
|
protected |
◆ getByChat()
◆ getByChatForEachUsers()
getByChatForEachUsers |
( |
int | $chatId, |
|
|
?array | $userIds = null ) |
◆ getCacheForChatsCounters()
getCacheForChatsCounters |
( |
| ) |
|
|
protected |
◆ getCacheForPreparedCounters()
getCacheForPreparedCounters |
( |
| ) |
|
|
protected |
◆ getCountersForEachChat()
getCountersForEachChat |
( |
?array | $chatIds = null, |
|
|
bool | $forCurrentUser = true ) |
|
protected |
◆ getCountUnreadMessagesByChatId()
getCountUnreadMessagesByChatId |
( |
int | $chatId | ) |
|
|
protected |
◆ getCountUnreadMessagesByChatIdForEachUsers()
getCountUnreadMessagesByChatIdForEachUsers |
( |
int | $chatId, |
|
|
?array | $userIds = null ) |
|
protected |
◆ getForEachChat()
getForEachChat |
( |
?array | $chatIds = null | ) |
|
◆ getForNotifyChat()
◆ getForNotifyChats()
getForNotifyChats |
( |
array | $chatIds | ) |
|
◆ getIdFirstUnreadMessage()
getIdFirstUnreadMessage |
( |
int | $chatId | ) |
|
◆ getIdFirstUnreadMessageForEachChats()
getIdFirstUnreadMessageForEachChats |
( |
array | $chatIds | ) |
|
◆ getTotal()
◆ getTotalCountUnreadMessages()
getTotalCountUnreadMessages |
( |
| ) |
|
|
protected |
◆ getUnreadChats()
getUnreadChats |
( |
?bool | $isMuted = null | ) |
|
|
protected |
◆ haveInSpecificChatsCache()
haveInSpecificChatsCache |
( |
array | $chatIds | ) |
|
|
protected |
◆ onAfterUserUpdate()
static onAfterUserUpdate |
( |
array | $fields | ) |
|
|
static |
◆ onFireUser()
static onFireUser |
( |
int | $userId | ) |
|
|
staticprotected |
◆ onHireUser()
static onHireUser |
( |
int | $userId | ) |
|
|
staticprotected |
◆ saveChatsCountersInCache()
saveChatsCountersInCache |
( |
Cache | $cache | ) |
|
|
protected |
◆ savePreparedCountersInCache()
savePreparedCountersInCache |
( |
Cache | $cache | ) |
|
|
protected |
◆ saveSpecificChatsCountersInCache()
saveSpecificChatsCountersInCache |
( |
array | $chatIds | ) |
|
|
protected |
◆ setFromChat()
setFromChat |
( |
int | $id, |
|
|
int | $count ) |
|
protected |
◆ setFromCopilot()
setFromCopilot |
( |
int | $id, |
|
|
int | $count ) |
|
protected |
◆ setFromLine()
setFromLine |
( |
int | $id, |
|
|
int | $count ) |
|
protected |
◆ setFromMutedChat()
setFromMutedChat |
( |
int | $id, |
|
|
int | $count ) |
|
protected |
◆ setFromNotify()
setFromNotify |
( |
int | $count | ) |
|
|
protected |
◆ setUnreadChat()
setUnreadChat |
( |
int | $id, |
|
|
bool | $isMuted ) |
|
protected |
◆ updateIsMuted()
updateIsMuted |
( |
int | $chatId, |
|
|
string | $isMuted ) |
◆ $counters
◆ $countersByChatIds
array $countersByChatIds = [] |
|
protected |
◆ $staticChatsCounterCache
array $staticChatsCounterCache = [] |
|
staticprotected |
◆ $staticCounterCache
array $staticCounterCache = [] |
|
staticprotected |
◆ $staticSpecificChatsCounterCache
array $staticSpecificChatsCounterCache = [] |
|
staticprotected |
◆ CACHE_CHATS_COUNTERS_NAME
const CACHE_CHATS_COUNTERS_NAME = 'chats_counter_v6' |
|
protected |
◆ CACHE_NAME
const CACHE_NAME = 'counter_v5' |
|
protected |
◆ CACHE_PATH
const CACHE_PATH = '/bx/im/v2/counter/' |
|
protected |
◆ CACHE_TTL
◆ DEFAULT_COUNTERS
Инициализатор= [
'TYPE' => [
'ALL' => 0,
'NOTIFY' => 0,
'CHAT' => 0,
'LINES' => 0,
'COPILOT' => 0,
],
'CHAT' => [],
'CHAT_MUTED' => [],
'CHAT_UNREAD' => [],
'LINES' => [],
'COPILOT' => [],
]
См. определение в файле CounterService.php строка 37
◆ DELAY_DELETION_COUNTERS_OF_FIRED_USER
const DELAY_DELETION_COUNTERS_OF_FIRED_USER = 604800 |
|
protected |
◆ EXPIRY_INTERVAL
const EXPIRY_INTERVAL = '-12 months' |
|
protected |