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

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

 allowMention ()
 
 getStartId (?int $userId=null)
 
 add (array $params, ?Context $context=null)
 
 sendMessage ($message, $sendingConfig=null)
 
 validateMessage (Message $message, SendingConfig $sendingServiceConfig)
 
 dropAll ()
 

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

static getByUser (?int $userId=null)
 
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)
 
 prepareParams (array $params=[])
 
 dropOtherUserNotificationByTag (Message $message)
 
 prepareConfirm (Message $message)
 
 dropAllConfirmByTag (Message $message)
 
 sendPushDropAll ()
 
 addIndex ()
 
 updateIndex ()
 

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

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

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

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

Методы

◆ add()

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

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

◆ addIndex()

addIndex ( )
protected

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

◆ allowMention()

allowMention ( )

Allows to send mention notification.

Возвращает
bool

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

◆ checkAccessWithoutCaching()

checkAccessWithoutCaching ( int $userId)
protected

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

◆ dropAll()

dropAll ( )

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

◆ dropAllConfirmByTag()

dropAllConfirmByTag ( Message $message)
protected

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

◆ dropOtherUserNotificationByTag()

dropOtherUserNotificationByTag ( Message $message)
protected

If we have other notifications with the same tag, we need to get USERS from the old notifications, then merge it with AUTHOR_ID or create new USERS array with AUTHOR_ID then delete old notifications.

Аргументы
Message$message
Возвращает
void

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

◆ find()

static find ( array $params = [],
?Context $context = null )
static

Looks for notification channel for user

Аргументы
array$params
[
    (int) TO_USER_ID
]
Возвращает
Result

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

◆ getByUser()

static getByUser ( ?int $userId = null)
static

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

◆ getDefaultType()

getDefaultType ( )
protected

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

◆ getStartId()

getStartId ( ?int $userId = null)

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

◆ prepareConfirm()

prepareConfirm ( Message $message)
protected

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

◆ prepareParams()

prepareParams ( array $params = [])
protected

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

◆ sendMessage()

sendMessage ( $message,
$sendingConfig = null )

Provides message sending process.

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

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

◆ sendPushDropAll()

sendPushDropAll ( )
protected

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

◆ updateIndex()

updateIndex ( )
protected

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

◆ validateMessage()

validateMessage ( Message $message,
SendingConfig $sendingServiceConfig )
Аргументы
Message$message
SendingConfig$sendingServiceConfig
Возвращает
Result

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