|
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 () |
|
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) |
|
См. определение в файле GeneralChat.php строка 18
◆ add()
add |
( |
array | $params, |
|
|
?Context | $context = null ) |
◆ canJoinGeneralChat()
canJoinGeneralChat |
( |
int | $userId | ) |
|
◆ cleanGeneralChatCache()
static cleanGeneralChatCache |
( |
string | $cacheId | ) |
|
|
static |
- Аргументы
-
self::MANAGERS_CACHE_ID | self::ID_CACHE_ID | $cacheId | |
- Возвращает
- void
См. определение в файле GeneralChat.php строка 285
◆ deleteGeneralChat()
static deleteGeneralChat |
( |
| ) |
|
|
static |
◆ find()
static find |
( |
array | $params = [], |
|
|
?Context | $context = null ) |
|
static |
- Аргументы
-
array | $params | |
Context | null | $context | |
- Возвращает
- Result
См. определение в файле GeneralChat.php строка 152
◆ get()
◆ getAccessCodesForDiskFolder()
getAccessCodesForDiskFolder |
( |
| ) |
|
|
protected |
◆ getAutoMessageStatus()
static getAutoMessageStatus |
( |
string | $type | ) |
|
|
static |
◆ getDefaultEntityType()
◆ getDefaultType()
◆ getGeneralChatId()
static getGeneralChatId |
( |
| ) |
|
|
static |
◆ getManagerList()
◆ getMessageUserDeleteText()
getMessageUserDeleteText |
( |
int | $userId | ) |
|
|
protected |
◆ getRightsForIntranetConfig()
getRightsForIntranetConfig |
( |
| ) |
|
◆ hasPostAccess()
hasPostAccess |
( |
?int | $userId = null | ) |
|
◆ isEnable()
◆ linkGeneralChat()
static linkGeneralChat |
( |
?int | $chatId = null | ) |
|
|
static |
◆ sendBanner()
sendBanner |
( |
?int | $authorId = null | ) |
|
|
protected |
◆ sendMessageUserDelete()
sendMessageUserDelete |
( |
int | $userId, |
|
|
bool | $skipRecent = false ) |
|
protected |
◆ sendMessageUsersAdd()
sendMessageUsersAdd |
( |
array | $usersToAdd, |
|
|
bool | $skipRecent = false ) |
|
protected |
◆ setManagers()
setManagers |
( |
array | $managerIds | ) |
|
◆ unlinkGeneralChat()
static unlinkGeneralChat |
( |
| ) |
|
|
static |
◆ $instance
◆ $resultFind
◆ $wasSearched
bool $wasSearched = false |
|
staticprotected |
◆ DISABLE_GENERAL_CHAT_OPTION
const DISABLE_GENERAL_CHAT_OPTION = 'disable_general_chat' |
◆ GENERAL_MESSAGE_TYPE_JOIN
const GENERAL_MESSAGE_TYPE_JOIN = 'join' |
◆ GENERAL_MESSAGE_TYPE_LEAVE
const GENERAL_MESSAGE_TYPE_LEAVE = 'leave' |
◆ ID_CACHE_ID
const ID_CACHE_ID = 'general_chat_id' |
◆ MANAGERS_CACHE_ID
const MANAGERS_CACHE_ID = 'general_chat_managers' |