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

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

 hasPostAccess (?int $userId=null)
 
 getManagerList ()
 
 setManagers (array $managerIds)
 
 add (array $params, ?Context $context=null)
 
 canJoinGeneralChat (int $userId)
 
 getRightsForIntranetConfig ()
 
- Открытые члены унаследованные от GroupChat
 setType (string $type)
 
 allowMention ()
 
 checkTitle ()
 
 sendPushUpdateMessage (Message $message)
 
 sendMessage ($message, $sendingConfig=null)
 
 getPopupData (array $excludedList=[])
 

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

static isEnable ()
 
static get ()
 
static getGeneralChatId ()
 
static find (array $params=[], ?Context $context=null)
 
static linkGeneralChat (?int $chatId=null)
 
static cleanGeneralChatCache (string $cacheId)
 
static unlinkGeneralChat ()
 
static getAutoMessageStatus (string $type)
 
static deleteGeneralChat ()
 
- Открытые статические члены унаследованные от 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 GENERAL_MESSAGE_TYPE_JOIN = 'join'
 
const GENERAL_MESSAGE_TYPE_LEAVE = 'leave'
 
const ID_CACHE_ID = 'general_chat_id'
 
const MANAGERS_CACHE_ID = 'general_chat_managers'
 
const DISABLE_GENERAL_CHAT_OPTION = 'disable_general_chat'
 
- Открытые атрибуты унаследованные от 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
 

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

 getDefaultType ()
 
 getDefaultEntityType ()
 
 sendBanner (?int $authorId=null)
 
 getAccessCodesForDiskFolder ()
 
 sendMessageUsersAdd (array $usersToAdd, bool $skipRecent=false)
 
 sendMessageUserDelete (int $userId, bool $skipRecent=false)
 
 getMessageUserDeleteText (int $userId)
 
- Защищенные члены унаследованные от GroupChat
 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)
 
 sendInviteMessage (?int $authorId=null)
 
 sendDescriptionMessage (?int $authorId=null)
 

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

static self $instance = null
 
static bool $wasSearched = false
 
static Result $resultFind
 

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

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

Методы

◆ add()

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

Переопределяет метод предка GroupChat.

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

◆ canJoinGeneralChat()

canJoinGeneralChat ( int $userId)

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

◆ cleanGeneralChatCache()

static cleanGeneralChatCache ( string $cacheId)
static
Аргументы
self::MANAGERS_CACHE_ID | self::ID_CACHE_ID$cacheId
Возвращает
void

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

◆ deleteGeneralChat()

static deleteGeneralChat ( )
static

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

◆ find()

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

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

◆ get()

static get ( )
static

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

◆ getAccessCodesForDiskFolder()

getAccessCodesForDiskFolder ( )
protected

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

◆ getAutoMessageStatus()

static getAutoMessageStatus ( string $type)
static

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

◆ getDefaultEntityType()

getDefaultEntityType ( )
protected

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

◆ getDefaultType()

getDefaultType ( )
protected

Переопределяет метод предка GroupChat.

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

◆ getGeneralChatId()

static getGeneralChatId ( )
static

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

◆ getManagerList()

getManagerList ( )

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

◆ getMessageUserDeleteText()

getMessageUserDeleteText ( int $userId)
protected

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

◆ getRightsForIntranetConfig()

getRightsForIntranetConfig ( )

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

◆ hasPostAccess()

hasPostAccess ( ?int $userId = null)

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

◆ isEnable()

static isEnable ( )
static

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

◆ linkGeneralChat()

static linkGeneralChat ( ?int $chatId = null)
static

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

◆ sendBanner()

sendBanner ( ?int $authorId = null)
protected

Переопределяет метод предка GroupChat.

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

◆ sendMessageUserDelete()

sendMessageUserDelete ( int $userId,
bool $skipRecent = false )
protected

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

◆ sendMessageUsersAdd()

sendMessageUsersAdd ( array $usersToAdd,
bool $skipRecent = false )
protected

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

◆ setManagers()

setManagers ( array $managerIds)

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

◆ unlinkGeneralChat()

static unlinkGeneralChat ( )
static

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

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

◆ $instance

self $instance = null
staticprotected

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

◆ $resultFind

Result $resultFind
staticprotected

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

◆ $wasSearched

bool $wasSearched = false
staticprotected

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

◆ DISABLE_GENERAL_CHAT_OPTION

const DISABLE_GENERAL_CHAT_OPTION = 'disable_general_chat'

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

◆ GENERAL_MESSAGE_TYPE_JOIN

const GENERAL_MESSAGE_TYPE_JOIN = 'join'

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

◆ GENERAL_MESSAGE_TYPE_LEAVE

const GENERAL_MESSAGE_TYPE_LEAVE = 'leave'

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

◆ ID_CACHE_ID

const ID_CACHE_ID = 'general_chat_id'

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

◆ MANAGERS_CACHE_ID

const MANAGERS_CACHE_ID = 'general_chat_managers'

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