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

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

 setType (string $type)
 
 allowMention ()
 
 add (array $params, ?Context $context=null)
 
 checkTitle ()
 
 sendPushUpdateMessage (Message $message)
 
 sendMessage ($message, $sendingConfig=null)
 
 getPopupData (array $excludedList=[])
 

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

 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)
 

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

- Открытые статические члены унаследованные от 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)
 
- Открытые атрибуты унаследованные от 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.php строка 30

Методы

◆ add()

add ( array $params,
?Context $context = null )

Переопределяется в CommentChat, CopilotChat и GeneralChat.

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

◆ addUsersToRelation()

addUsersToRelation ( array $usersToAdd,
array $managerIds = [],
?bool $hideHistory = null )
protected

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

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

◆ allowMention()

allowMention ( )

Allows to send mention notification.

Возвращает
bool

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

◆ checkAccessWithoutCaching()

checkAccessWithoutCaching ( int $userId)
protected

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

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

◆ checkTitle()

checkTitle ( )

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

◆ filterParams()

filterParams ( array $params)
protected

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

◆ generateTitle()

generateTitle ( )
protected

Переопределяется в CopilotChat и VideoConfChat.

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

◆ getCodeGreetingMessage()

getCodeGreetingMessage ( \Bitrix\Im\V2\Entity\User\User $author)
protected

Переопределяется в VideoConfChat.

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

◆ getDefaultType()

getDefaultType ( )
protected

Переопределяется в ChannelChat, CommentChat, CopilotChat, GeneralChat, OpenChat и OpenLineChat.

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

◆ getPopupData()

getPopupData ( array $excludedList = [])

Returns the data to be raised to the top of the REST response. Works on the principle of the composite pattern.

См. также
RestAdapter::toRestFormat()
Аргументы
string[]$excludedList
Возвращает
PopupData

Замещает PopupDataAggregatable.

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

◆ needToSendGreetingMessages()

needToSendGreetingMessages ( )
protected

Переопределяется в VideoConfChat.

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

◆ prepareParams()

prepareParams ( array $params = [])
protected

Переопределяется в CommentChat, CopilotChat, OpenLineChat и VideoConfChat.

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

◆ sendBanner()

sendBanner ( ?int $authorId = null)
protected

Переопределяется в CopilotChat и GeneralChat.

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

◆ sendDescriptionMessage()

sendDescriptionMessage ( ?int $authorId = null)
protected

Переопределяется в CopilotChat.

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

◆ sendGreetingMessage()

sendGreetingMessage ( ?int $authorId = null)
protected

Переопределяется в CopilotChat.

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

◆ sendInviteMessage()

sendInviteMessage ( ?int $authorId = null)
protected

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

◆ sendMessage()

sendMessage ( $message,
$sendingConfig = null )

Provides message sending process.

Аргументы
Message | string | array$message
SendingConfig | array | null$sendingConfig
Возвращает
Result

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

◆ sendMessageAuthorChange()

sendMessageAuthorChange ( \Bitrix\Im\V2\Entity\User\User $author)
protected

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

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

◆ sendPushReadOpponent()

sendPushReadOpponent ( MessageCollection $messages,
int $lastId )
protected

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

◆ sendPushUpdateMessage()

sendPushUpdateMessage ( Message $message)

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

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

◆ setType()

setType ( string $type)

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