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

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

 setEntityMap (array $entityMap)
 
 getEntityMap ()
 
 getEntityData (bool $force=false)
 
- Открытые члены унаследованные от GroupChat
 setType (string $type)
 
 allowMention ()
 
 add (array $params, ?Context $context=null)
 
 checkTitle ()
 
 sendPushUpdateMessage (Message $message)
 
 sendMessage ($message, $sendingConfig=null)
 
 getPopupData (array $excludedList=[])
 

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

static find (array $params=[], ?Context $context=null)
 
- Открытые статические члены унаследованные от Chat
static getTypes ()
 
static getType ($chatData)
 
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)
 

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

const ENTITY_SEPARATOR = '|'
 
const ENTITY_MAP_FIELDS = ['entityId', 'entityData1', 'entityData2', 'entityData3']
 
 $entityMap
 
 $entityData = []
 

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

- Открытые атрибуты унаследованные от Chat
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
 
- Защищенные члены унаследованные от GroupChat
 getDefaultType ()
 
 needToSendGreetingMessages ()
 
 checkAccessWithoutCaching (int $userId)
 
 filterParams (array $params)
 
 prepareParams (array $params=[])
 
 addUsersToRelation (array $usersToAdd, array $managerIds=[], ?bool $hideHistory=null)
 
 generateTitle ()
 
 sendPushReadOpponent (MessageCollection $messages, int $lastId)
 
 sendGreetingMessage (?int $authorId=null)
 
 getCodeGreetingMessage (\Bitrix\Im\V2\Entity\User\User $author)
 
 sendMessageAuthorChange (\Bitrix\Im\V2\Entity\User\User $author)
 
 sendBanner (?int $authorId=null)
 
 sendInviteMessage (?int $authorId=null)
 
 sendDescriptionMessage (?int $authorId=null)
 

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

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

Методы

◆ find()

static find ( array $params = [],
?Context $context = null )
static
Аргументы
array$params
[
    string ENTITY_TYPE
    string ENTITY_ID
]
Возвращает
Result

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

◆ getEntityData()

getEntityData ( bool $force = false)
Аргументы
bool$force
Возвращает
array

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

◆ getEntityMap()

getEntityMap ( )

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

◆ setEntityMap()

setEntityMap ( array $entityMap)

Переопределяется в OpenLineChat и OpenLineLiveChat.

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

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

◆ $entityData

$entityData = []
protected

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

◆ $entityMap

$entityMap
protected
Инициализатор
= [
'entityId' => [],
'entityData1' => [],
'entityData2' => [],
'entityData3' => [],
]

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

◆ ENTITY_MAP_FIELDS

const ENTITY_MAP_FIELDS = ['entityId', 'entityData1', 'entityData2', 'entityData3']
protected

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

◆ ENTITY_SEPARATOR

const ENTITY_SEPARATOR = '|'
protected

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