Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс CounterServiceLegacy
+ Граф наследования:CounterServiceLegacy:

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

 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)
 
 setFromMutedChat (int $id, int $count)
 
 setFromNotify (int $count)
 
 setFromLine (int $id, int $count)
 
 setFromCopilot (int $id, int $count)
 
 setFromChat (int $id, int $count)
 
 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/v2/counter/'
 
const DEFAULT_COUNTERS
 
array $counters
 
array $countersByChatIds = []
 

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

- Открытые члены унаследованные от CounterService
 __construct (?int $userId=null)
 
 getTotal ()
 
 getByChatForEachUsers (int $chatId, ?array $userIds=null)
 
 getByChat (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)
 
 deleteAll (bool $withNotify=false)
 
 addForEachUser (Message $message, RelationCollection $relations)
 
 addCollection (MessageCollection $messages, Relation $relation)
 
 addStartingFrom (int $messageId, Relation $relation)
 
 deleteByMessageIdForAll (int $messageId, ?array $invalidateCacheUsers=null)
 
 deleteByMessageIdsForAll (array $messageIds, ?array $invalidateCacheUsers=null)
 
 deleteTo (Message $message)
 
- Открытые статические члены унаследованные от CounterService
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 строка 91

◆ countUnreadMessages()

countUnreadMessages ( ?array $chatIds = null)
protected

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

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

◆ getMapChatToDialog()

getMapChatToDialog ( array $privateChatIds)
protected

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

◆ getUnreadChats()

getUnreadChats ( ?bool $isMuted = null)
protected

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

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

◆ setFromDialog()

setFromDialog ( int $id,
int $count )
protected

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

◆ setUnreadDialog()

setUnreadDialog ( int $id)
protected

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

Данные класса

◆ 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,
],
'CHAT' => [],
'CHAT_MUTED' => [],
'CHAT_UNREAD' => [],
'LINES' => [],
'DIALOG' => [],
'DIALOG_UNREAD' => [],
]

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