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

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

 allowMention ()
 
 setManageSettings (string $manageSettings)
 
 setManageUsersAdd (string $manageUsersAdd)
 
 setManageUsersDelete (string $manageUsersDelete)
 
 setManageUI (string $manageUI)
 
 setCanPost (string $canPost)
 
 getDialogId ()
 
 getDialogContextId ()
 
 getStartId (?int $userId=null)
 
 getCompanion (?int $userId=null)
 
 getDisplayedTitle ()
 
 addUsers (array $userIds, array $managerIds=[], ?bool $hideHistory=null, bool $withMessage=true, bool $skipRecent=false)
 
 sendPushUpdateMessage (Message $message)
 
 sendMessage ($message, $sendingConfig=null)
 
 add (array $params, ?Context $context=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)
 

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

 getDefaultType ()
 
 checkAccessWithoutCaching (int $userId)
 
 sendPushReadSelf (MessageCollection $messages, int $lastId, int $counter)
 
 sendPushReadOpponent (MessageCollection $messages, int $lastId)
 
 sendPushUnreadSelf (int $unreadToId, int $lastId, int $counter, ?array $lastMessageStatuses=null)
 
 sendEventRead (int $startId, int $endId, int $counter, bool $byEvent)
 
 prepareParams (array $params=[])
 
 addIndex ()
 
 updateIndex ()
 

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

const EXTRANET_CAN_SEE_HISTORY = true
 

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

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

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

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

Методы

◆ add()

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

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

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

◆ addIndex()

addIndex ( )
protected

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

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

◆ addUsers()

addUsers ( array $userIds,
array $managerIds = [],
?bool $hideHistory = null,
bool $withMessage = true,
bool $skipRecent = false )

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

◆ allowMention()

allowMention ( )

Allows to send mention notification.

Возвращает
bool

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

◆ checkAccessWithoutCaching()

checkAccessWithoutCaching ( int $userId)
protected

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

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

◆ 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)

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

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

◆ getDefaultType()

getDefaultType ( )
protected

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

◆ getDialogContextId()

getDialogContextId ( )

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

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

◆ getDialogId()

getDialogId ( )

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

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

◆ getDisplayedTitle()

getDisplayedTitle ( )

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

◆ 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.

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

◆ getStartId()

getStartId ( ?int $userId = null)

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

◆ prepareParams()

prepareParams ( array $params = [])
protected

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

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

◆ sendEventRead()

sendEventRead ( int $startId,
int $endId,
int $counter,
bool $byEvent )
protected

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

◆ sendMessage()

sendMessage ( $message,
$sendingConfig = null )

Provides message sending process.

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

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

◆ sendPushReadOpponent()

sendPushReadOpponent ( MessageCollection $messages,
int $lastId )
protected

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

◆ sendPushReadSelf()

sendPushReadSelf ( MessageCollection $messages,
int $lastId,
int $counter )
protected

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

◆ sendPushUnreadSelf()

sendPushUnreadSelf ( int $unreadToId,
int $lastId,
int $counter,
?array $lastMessageStatuses = null )
protected

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

◆ sendPushUpdateMessage()

sendPushUpdateMessage ( Message $message)

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

◆ setCanPost()

setCanPost ( string $canPost)

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

◆ setManageSettings()

setManageSettings ( string $manageSettings)

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

◆ setManageUI()

setManageUI ( string $manageUI)

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

◆ setManageUsersAdd()

setManageUsersAdd ( string $manageUsersAdd)

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

◆ setManageUsersDelete()

setManageUsersDelete ( string $manageUsersDelete)

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

◆ updateIndex()

updateIndex ( )
protected

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

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

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

◆ EXTRANET_CAN_SEE_HISTORY

const EXTRANET_CAN_SEE_HISTORY = true
protected

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