|
static | find (array $params, ?Context $context=null) |
|
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) |
|
См. определение в файле PrivateChat.php строка 32
◆ add()
add |
( |
array | $params, |
|
|
?Context | $context = null ) |
◆ addIndex()
◆ addUsers()
addUsers |
( |
array | $userIds, |
|
|
array | $managerIds = [], |
|
|
?bool | $hideHistory = null, |
|
|
bool | $withMessage = true, |
|
|
bool | $skipRecent = false ) |
◆ allowMention()
Allows to send mention notification.
- Возвращает
- bool
См. определение в файле PrivateChat.php строка 50
◆ checkAccessWithoutCaching()
checkAccessWithoutCaching |
( |
int | $userId | ) |
|
|
protected |
◆ find()
static find |
( |
array | $params, |
|
|
?Context | $context = null ) |
|
static |
Looks for private chat one-to-one by its participants.
- Аргументы
-
array | $params |
[
(int) CHAT_ID
(int) FROM_USER_ID
(int) TO_USER_ID
]
|
Context | null | $context | |
- Возвращает
- Result
Переопределяется в FavoriteChat.
См. определение в файле PrivateChat.php строка 553
◆ getCompanion()
getCompanion |
( |
?int | $userId = null | ) |
|
◆ getDefaultType()
◆ getDialogContextId()
◆ getDialogId()
◆ getDisplayedTitle()
◆ 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()
- Аргументы
-
- Возвращает
- PopupData
Замещает PopupDataAggregatable.
См. определение в файле PrivateChat.php строка 755
◆ getStartId()
getStartId |
( |
?int | $userId = null | ) |
|
◆ prepareParams()
prepareParams |
( |
array | $params = [] | ) |
|
|
protected |
◆ sendEventRead()
sendEventRead |
( |
int | $startId, |
|
|
int | $endId, |
|
|
int | $counter, |
|
|
bool | $byEvent ) |
|
protected |
◆ sendMessage()
sendMessage |
( |
| $message, |
|
|
| $sendingConfig = null ) |
Provides message sending process.
- Аргументы
-
Message | string | array | $message | |
SendingConfig | array | null | $sendingConfig | |
- Возвращает
- Result
См. определение в файле PrivateChat.php строка 311
◆ sendPushReadOpponent()
◆ sendPushReadSelf()
◆ sendPushUnreadSelf()
sendPushUnreadSelf |
( |
int | $unreadToId, |
|
|
int | $lastId, |
|
|
int | $counter, |
|
|
?array | $lastMessageStatuses = null ) |
|
protected |
◆ sendPushUpdateMessage()
sendPushUpdateMessage |
( |
Message | $message | ) |
|
◆ setCanPost()
setCanPost |
( |
string | $canPost | ) |
|
◆ setManageSettings()
setManageSettings |
( |
string | $manageSettings | ) |
|
◆ setManageUI()
setManageUI |
( |
string | $manageUI | ) |
|
◆ setManageUsersAdd()
setManageUsersAdd |
( |
string | $manageUsersAdd | ) |
|
◆ setManageUsersDelete()
setManageUsersDelete |
( |
string | $manageUsersDelete | ) |
|
◆ updateIndex()
◆ EXTRANET_CAN_SEE_HISTORY
const EXTRANET_CAN_SEE_HISTORY = true |
|
protected |