1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс CounterServiceLegacy
Граф наследования:CounterServiceLegacy:
CounterService

Защищенные члены

 countUnreadMessages (?array $chatIds=null)
 getUnreadChats (?bool $isMuted=null)
 countUnreadChats ()
 setUnreadDialog (int $id)
 setFromDialog (int $id, int $count)
 getMapChatToDialog (array $privateChatIds)
Защищенные члены унаследованные от CounterService
 getCacheForPreparedCounters ()
 getCacheForChatsCounters ()
 savePreparedCountersInCache (Cache $cache)
 saveChatsCountersInCache (Cache $cache)
 saveSpecificChatsCountersInCache (array $chatIds)
 setUnreadChat (int $id, bool $isMuted)
 setUnreadCollab (int $id, bool $isMuted)
 setUnreadCopilot (int $id, bool $isMuted)
 setFromMutedChat (int $id, int $count)
 setFromNotify (int $count)
 setFromLine (int $id, int $count)
 setFromCopilot (int $id, int $count)
 setFromCollab (int $id, int $count)
 setFromComment (int $id, ?int $parentId, int $count)
 setFromChat (int $id, int $count)
 getMapChatIdToParentId (array $counters)
 getCommentChatIdsOnly (array $counters)
 getCountersForEachChat (?array $chatIds=null, bool $forCurrentUser=true)
 getAdditionalCounters (?array $chatIds=null, bool $forCurrentUser=true)
 getTotalCountUnreadMessages ()
 getCountUnreadMessagesByChatIdForEachUsers (int $chatId, ?array $userIds=null)
 getCountUnreadMessagesByChatId (int $chatId)
 haveInSpecificChatsCache (array $chatIds)

Защищенные данные

const CACHE_PATH = '/bx/im/counter/'
const DEFAULT_COUNTERS
Защищенные данные унаследованные от CounterService
const DELAY_DELETION_COUNTERS_OF_FIRED_USER = 604800
const EXPIRY_INTERVAL = '-12 months'
const CACHE_TTL = 86400
const CACHE_NAME = 'counter_v5'
const CACHE_CHATS_COUNTERS_NAME = 'chats_counter_v6'
const CACHE_PATH = '/bx/im/counter/v5/'
const DEFAULT_COUNTERS
array $counters
array $countersByChatIds = []

Дополнительные унаследованные члены

Открытые члены унаследованные от CounterService
 __construct (?int $userId=null)
 getTotal ()
 getByChatForEachUsers (int $chatId, array $userIds)
 getByChat (int $chatId)
 getByChatWithOverflow (int $chatId)
 get ()
 getForEachChat (?array $chatIds=null)
 getForNotifyChat ()
 getForNotifyChats (array $chatIds)
 getIdFirstUnreadMessage (int $chatId)
 getIdFirstUnreadMessageForEachChats (array $chatIds)
 updateIsMuted (int $chatId, string $isMuted)
 deleteByChatId (int $chatId)
 deleteByChatIds (array $chatIds)
 deleteAll (bool $withNotify=false)
 addForEachUser (Message $message, RelationCollection $relations)
 addCollection (MessageCollection $messages, Relation $relation)
 addStartingFrom (int $messageId, Relation $relation)
 deleteByMessageForAll (Message $message, ?array $invalidateCacheUsers=null)
 deleteByMessagesForAll (MessageCollection $messages, ?array $invalidateCacheUsers=null)
 deleteTo (Message $message)
Открытые статические члены унаследованные от CounterService
static deleteByChatIdForAll (int $chatId)
static deleteByChatIdsForAll (array $chatIds)
static getChildrenWithCounters (Chat $parentChat, ?int $userId=null)
static onAfterUserUpdate (array $fields)
static deleteCountersOfFiredUserAgent (int $userId)
static deleteExpiredCountersAgent ()
static clearCache (?int $userId=null)
Защищенные статические члены унаследованные от CounterService
static onFireUser (int $userId)
static onHireUser (int $userId)
Статические защищенные данные унаследованные от CounterService
static array $staticCounterCache = []
static array $staticChatsCounterCache = []
static array $staticSpecificChatsCounterCache = []

Подробное описание

См. определение в файле CounterServiceLegacy.php строка 10

Методы

◆ countUnreadChats()

countUnreadChats ( )
protected

Переопределяет метод предка CounterService.

См. определение в файле CounterServiceLegacy.php строка 92

◆ countUnreadMessages()

countUnreadMessages ( ?array $chatIds = null)
protected

Переопределяет метод предка CounterService.

См. определение в файле CounterServiceLegacy.php строка 31

◆ getMapChatToDialog()

getMapChatToDialog ( array $privateChatIds)
protected

См. определение в файле CounterServiceLegacy.php строка 125

◆ getUnreadChats()

getUnreadChats ( ?bool $isMuted = null)
protected

Переопределяет метод предка CounterService.

См. определение в файле CounterServiceLegacy.php строка 77

◆ setFromDialog()

setFromDialog ( int $id,
int $count )
protected

См. определение в файле CounterServiceLegacy.php строка 117

◆ setUnreadDialog()

setUnreadDialog ( int $id)
protected

См. определение в файле CounterServiceLegacy.php строка 109

Поля

◆ CACHE_PATH

const CACHE_PATH = '/bx/im/counter/'
protected

См. определение в файле CounterServiceLegacy.php строка 12

◆ DEFAULT_COUNTERS

const DEFAULT_COUNTERS
protected
Инициализатор
= [
'TYPE' => [
'ALL' => 0,
'NOTIFY' => 0,
'CHAT' => 0,
'LINES' => 0,
'DIALOG' => 0,
'MESSENGER' => 0,
],
'CHAT' => [],
'CHAT_MUTED' => [],
'CHAT_UNREAD' => [],
'LINES' => [],
'DIALOG' => [],
'DIALOG_UNREAD' => [],
]

См. определение в файле CounterServiceLegacy.php строка 14


Объявления и описания членов класса находятся в файле: