1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Chat
Граф наследования:Chat:
GroupChat NotifyChat NullChat PrivateChat AiAssistantBaseChat ChannelChat CollabChat CommentChat CopilotChat EntityChat ExternalChat GeneralChat OpenChat VideoConfChat AiAssistantPrivateChat FavoriteChat

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

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)

Поля данных

const TYPE_SYSTEM = 'S'
const TYPE_PRIVATE = 'P'
const TYPE_OPEN = 'O'
const TYPE_THREAD = 'T'
const TYPE_GROUP = 'C'
const TYPE_CHANNEL = 'N'
const TYPE_OPEN_LINE = 'L'
const STATUS_UNREAD = 0
const STATUS_NOTIFY = 1
const STATUS_READ = 2
const LIMIT_SEND_EVENT = 30
const FILTER_LIMIT = 50

Защищенные статические члены

static isGeneralChat (?int $chatId, string $typeLiteral, string $entityType)
static isGeneralChannel (?int $chatId, string $typeLiteral, string $entityType)

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

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

Методы

◆ checkReplicaDeprecatedAgent()

checkReplicaDeprecatedAgent ( )
static

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

◆ fillCounterData()

fillCounterData ( array $chats)
static

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

◆ filterRelationsByAccess()

filterRelationsByAccess ( int $chatId,
array $relations )
static

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

◆ formatChatData()

formatChatData ( $chat)
static

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

◆ getById()

getById ( $id,
$params = array() )
static
Аргументы
$id
array$params
Возвращает
array|bool|mixed
Исключения

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\LoaderException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ getList()

getList ( $params = array())
static

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

◆ getListParams()

getListParams ( $params)
static

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

◆ getMessageCount()

getMessageCount ( $chatId,
$userId = null )
static

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

◆ 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 | string$dialogId
Возвращает
int|null AUTHOR_ID
Исключения

Bitrix\Main\ArgumentException

Исключения

Bitrix\Main\ObjectPropertyException

Исключения

Bitrix\Main\SystemException

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

◆ getRelation()

getRelation ( $chatId,
$params = [] )
static

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

◆ getType()

getType ( $chatData,
bool $camelCase = true )
static

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

◆ getTypes()

getTypes ( )
static

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

◆ getUsers()

getUsers ( $chatId,
$options = [] )
static

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

◆ hasAccess()

hasAccess ( $chatId)
static

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

◆ 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

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

◆ isGeneralChat()

isGeneralChat ( ?int $chatId,
string $typeLiteral,
string $entityType )
staticprotected

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

◆ isUserInChat()

isUserInChat ( $chatId,
$userId = 0 )
static

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

◆ isUserKickedFromChat()

isUserKickedFromChat ( $chatId,
$userId = 0 )
static

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

◆ mute()

mute ( $chatId,
$action,
$userId = null )
static

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

◆ toJson()

toJson ( $array)
static

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

Поля

◆ FILTER_LIMIT

const FILTER_LIMIT = 50

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

◆ LIMIT_SEND_EVENT

const LIMIT_SEND_EVENT = 30

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

◆ STATUS_NOTIFY

const STATUS_NOTIFY = 1

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

◆ STATUS_READ

const STATUS_READ = 2

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

◆ STATUS_UNREAD

const STATUS_UNREAD = 0

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

◆ TYPE_CHANNEL

const TYPE_CHANNEL = 'N'

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

◆ TYPE_GROUP

const TYPE_GROUP = 'C'

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

◆ TYPE_OPEN

const TYPE_OPEN = 'O'

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

◆ TYPE_OPEN_LINE

const TYPE_OPEN_LINE = 'L'

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

◆ TYPE_PRIVATE

const TYPE_PRIVATE = 'P'

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

◆ TYPE_SYSTEM

const TYPE_SYSTEM = 'S'

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

◆ TYPE_THREAD

const TYPE_THREAD = 'T'

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


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