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

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

 setPreparedParams (array $params)
 
 getAuthor ()
 
 getStartId (?int $userId=null)
 
 isExist ()
 
 allowMention ()
 
 hasAccess ($user=null)
 
 readMessages (?MessageCollection $messages, bool $byEvent=false)
 
 getSelfRelation (array $options=[])
 
 createChatIfNotExists (array $params)
 
 sendMessage ($message, $sendingConfig=null)
 
 validateMessage (Message $message, SendingConfig $sendingServiceConfig)
 
 save ()
 
 updateMessage (Message $message)
 
 deleteMessage (Message $message)
 

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

 getDefaultType ()
 
 checkAccessWithoutCaching (int $userId)
 
 addIndex ()
 
 updateIndex ()
 

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

- Открытые статические члены унаследованные от Chat
static getTypes ()
 
static getType ($chatData)
 
static getRelation ($chatId, $params=[])
 
static mute ($chatId, $action, $userId=null)
 
static getMessageCount ($chatId, $userId=null)
 
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)
 
- Открытые атрибуты унаследованные от 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
 

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

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

Методы

◆ addIndex()

addIndex ( )
protected

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

◆ allowMention()

allowMention ( )

Allows to send mention notification.

Возвращает
bool

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

◆ checkAccessWithoutCaching()

checkAccessWithoutCaching ( int $userId)
protected

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

◆ createChatIfNotExists()

createChatIfNotExists ( array $params)

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

◆ deleteMessage()

deleteMessage ( Message $message)

Does nothing.

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

◆ getAuthor()

getAuthor ( )

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

◆ getDefaultType()

getDefaultType ( )
protected

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

◆ getSelfRelation()

getSelfRelation ( array $options = [])

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

◆ getStartId()

getStartId ( ?int $userId = null)

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

◆ hasAccess()

hasAccess ( $user = null)

Does nothing.

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

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

◆ isExist()

isExist ( )

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

◆ readMessages()

readMessages ( ?MessageCollection $messages,
bool $byEvent = false )

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

◆ save()

save ( )

Does nothing.

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

◆ sendMessage()

sendMessage ( $message,
$sendingConfig = null )

Does nothing.

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

◆ setPreparedParams()

setPreparedParams ( array $params)

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

◆ updateIndex()

updateIndex ( )
protected

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

◆ updateMessage()

updateMessage ( Message $message)

Does nothing.

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

◆ validateMessage()

validateMessage ( Message $message,
SendingConfig $sendingServiceConfig )

Does nothing.

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