|
static | getTypes () |
static | getType ($chatData, bool $camelCase=true) |
static | getRelation ($chatId, $params=[]) |
static | mute ($chatId, $action, $userId=null) |
static | getMessageCount ($chatId, $userId=null) |
static | hasAccess ($chatId) |
static | getMessages ($chatId, $userId=null, $options=Array()) |
static | getUsers ($chatId, $options=[]) |
static | getById ($id, $params=array()) |
static | getList ($params=array()) |
static | formatChatData ($chat) |
static | getListParams ($params) |
static | toJson ($array) |
static | isUserInChat ($chatId, $userId=0) |
static | isUserKickedFromChat ($chatId, $userId=0) |
static | checkReplicaDeprecatedAgent () |
static | isActionAllowed ($dialogId, $action, $entityType=null) |
static | getOwnerById ($dialogId) |
static | fillCounterData (array $chats) |
static | filterRelationsByAccess (int $chatId, array $relations) |
|
static | isGeneralChat (?int $chatId, string $typeLiteral, string $entityType) |
static | isGeneralChannel (?int $chatId, string $typeLiteral, string $entityType) |
См. определение в файле chat.php строка 22
◆ checkReplicaDeprecatedAgent()
checkReplicaDeprecatedAgent |
( |
| ) |
|
|
static |
◆ fillCounterData()
fillCounterData |
( |
array | $chats | ) |
|
|
static |
◆ filterRelationsByAccess()
filterRelationsByAccess |
( |
int | $chatId, |
|
|
array | $relations ) |
|
static |
◆ formatChatData()
◆ getById()
getById |
( |
| $id, |
|
|
| $params = array() ) |
|
static |
- Аргументы
-
- Возвращает
- array|bool|mixed
- Исключения
-
Bitrix\Main\ArgumentException
- Исключения
-
Bitrix\Main\LoaderException
- Исключения
-
Bitrix\Main\ObjectPropertyException
- Исключения
-
Bitrix\Main\SystemException
См. определение в файле chat.php строка 800
◆ getList()
getList |
( |
| $params = array() | ) |
|
|
static |
◆ getListParams()
◆ getMessageCount()
getMessageCount |
( |
| $chatId, |
|
|
| $userId = null ) |
|
static |
◆ getMessages()
getMessages |
( |
| $chatId, |
|
|
| $userId = null, |
|
|
| $options = Array() ) |
|
static |
- Аргументы
-
| $chatId | |
null | $userId | |
array | $options | |
- Возвращает
- array|bool
См. определение в файле chat.php строка 411
◆ getOwnerById()
getOwnerById |
( |
| $dialogId | ) |
|
|
static |
Get chat authorId by dialogId
- Аргументы
-
- Возвращает
- int|null AUTHOR_ID
- Исключения
-
Bitrix\Main\ArgumentException
- Исключения
-
Bitrix\Main\ObjectPropertyException
- Исключения
-
Bitrix\Main\SystemException
См. определение в файле chat.php строка 1339
◆ getRelation()
getRelation |
( |
| $chatId, |
|
|
| $params = [] ) |
|
static |
◆ getType()
getType |
( |
| $chatData, |
|
|
bool | $camelCase = true ) |
|
static |
◆ getTypes()
◆ getUsers()
getUsers |
( |
| $chatId, |
|
|
| $options = [] ) |
|
static |
◆ hasAccess()
◆ isActionAllowed()
isActionAllowed |
( |
| $dialogId, |
|
|
| $action, |
|
|
| $entityType = null ) |
|
static |
Returns the value of the chat option by dialogId.
- Аргументы
-
int | string | $dialogId | |
string | $action | - chat option. |
- См. также
- \CIMChat::GetChatOptions()
- Аргументы
-
string | null | $entityType | - if $entityType is known, you can avoid accessing the database. |
- Возвращает
- bool
- Исключения
-
Bitrix\Main\ArgumentException
- Исключения
-
Bitrix\Main\ObjectPropertyException
- Исключения
-
Bitrix\Main\SystemException
См. определение в файле chat.php строка 1276
◆ isGeneralChannel()
isGeneralChannel |
( |
?int | $chatId, |
|
|
string | $typeLiteral, |
|
|
string | $entityType ) |
|
staticprotected |
◆ isGeneralChat()
isGeneralChat |
( |
?int | $chatId, |
|
|
string | $typeLiteral, |
|
|
string | $entityType ) |
|
staticprotected |
◆ isUserInChat()
isUserInChat |
( |
| $chatId, |
|
|
| $userId = 0 ) |
|
static |
◆ isUserKickedFromChat()
isUserKickedFromChat |
( |
| $chatId, |
|
|
| $userId = 0 ) |
|
static |
◆ mute()
mute |
( |
| $chatId, |
|
|
| $action, |
|
|
| $userId = null ) |
|
static |
◆ toJson()
◆ FILTER_LIMIT
◆ LIMIT_SEND_EVENT
const LIMIT_SEND_EVENT = 30 |
◆ STATUS_NOTIFY
◆ STATUS_READ
◆ STATUS_UNREAD
◆ TYPE_CHANNEL
◆ TYPE_GROUP
◆ TYPE_OPEN
◆ TYPE_OPEN_LINE
const TYPE_OPEN_LINE = 'L' |
◆ TYPE_PRIVATE
◆ TYPE_SYSTEM
◆ TYPE_THREAD
Объявления и описания членов класса находятся в файле: