Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс ChatFactory

Открытые члены

 getChat ($params)
 
 getNotifyFeed ($userId=null)
 
 getEntityChat (string $entityType, $entityId)
 
 getGeneralChat ()
 
 getPrivateChat ($fromUserId, $toUserId)
 
 getPersonalChat ($userId=null)
 
 initChat (?array $params=null)
 
 createNotifyFeed (?array $params=null)
 
 createPersonalChat (?array $params=null)
 
 createPrivateChat (?array $params=null)
 
 createOpenChat (?array $params=null)
 
 createOpenLineChat (?array $params=null)
 
 findChat (array $params)
 
 addChat (array $params)
 
 cleanCache (int $id)
 

Открытые статические члены

static getInstance ()
 

Открытые атрибуты

const NON_CACHED_FIELDS = ['MESSAGE_COUNT', 'USER_COUNT', 'LAST_MESSAGE_ID']
 

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

 getCache (int $id)
 

Статические защищенные данные

static self $instance
 

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

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

Методы

◆ addChat()

addChat ( array $params)
Аргументы
array$params
Возвращает
Result

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

◆ cleanCache()

cleanCache ( int $id)

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

◆ createNotifyFeed()

createNotifyFeed ( ?array $params = null)
Аргументы
array | null$params
Возвращает
Chat|NotifyChat

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

◆ createOpenChat()

createOpenChat ( ?array $params = null)
Аргументы
array | null$params
Возвращает
Chat|OpenChat

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

◆ createOpenLineChat()

createOpenLineChat ( ?array $params = null)
Аргументы
array | null$params
Возвращает
Chat|OpenLineChat

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

◆ createPersonalChat()

createPersonalChat ( ?array $params = null)
Аргументы
array | null$params
Возвращает
Chat|FavoriteChat

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

◆ createPrivateChat()

createPrivateChat ( ?array $params = null)
Аргументы
array | null$params
Возвращает
Chat|PrivateChat

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

◆ findChat()

findChat ( array $params)
Аргументы
array$params
[
    (string) MESSAGE_TYPE - Message type:
        
См. также
 \IM_MESSAGE_SYSTEM = S - notification,
        
 \IM_MESSAGE_PRIVATE = P - private chat,
        
 \IM_MESSAGE_CHAT = C - group chat,
        
 \IM_MESSAGE_OPEN = O - open chat,
        
 \IM_MESSAGE_OPEN_LINE = L - open line chat.

    (string|int) DIALOG_ID - Dialog Id:
        chatNNN - chat,
        sgNNN - sonet group,
        crmNNN - crm chat,
        NNN - recipient user.

    (int) CHAT_ID - Chat Id.
    (int) TO_USER_ID - Recipient user Id.
    (int) FROM_USER_ID - Sender user Id.
]
Возвращает
Result

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

◆ getCache()

getCache ( int $id)
protected

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

◆ getChat()

getChat ( $params)
Аргументы
array | int | string$params
Возвращает
Chat|null

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

◆ getEntityChat()

getEntityChat ( string $entityType,
$entityId )
Аргументы
string$entityType
int | string$entityId
Возвращает
Chat|EntityChat|null

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

◆ getGeneralChat()

getGeneralChat ( )
Аргументы
string$entityType
int | string$entityId
Возвращает
Chat|GeneralChat|null

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

◆ getInstance()

static getInstance ( )
static

Returns current instance of the Dispatcher.

Возвращает
self

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

◆ getNotifyFeed()

getNotifyFeed ( $userId = null)
Возвращает
Chat|NotifyChat|null

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

◆ getPersonalChat()

getPersonalChat ( $userId = null)
Возвращает
Chat|Chat\FavoriteChat|null

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

◆ getPrivateChat()

getPrivateChat ( $fromUserId,
$toUserId )
Возвращает
Chat|Chat\PrivateChat|null

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

◆ initChat()

initChat ( ?array $params = null)
Аргументы
array | null$params
Возвращает
Chat

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

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

◆ $instance

self $instance
staticprotected

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

◆ NON_CACHED_FIELDS

const NON_CACHED_FIELDS = ['MESSAGE_COUNT', 'USER_COUNT', 'LAST_MESSAGE_ID']

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