1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Message
Граф наследования:Message:
RegistryEntry ActiveRecord RestEntity PopupDataAggregatable DateFilterable Entity RestConvertible

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

 __construct ($source=null)
 save ()
 getId ()
 markAsSystem (bool $flag)
 isSystem ()
 isDisappearing ()
 getDisappearingTime ()
 isImportant ()
 markAsImportant (?bool $isImportant=true)
 getImportantFor ()
 setImportantFor (array $importantFor)
 getForwardUuid ()
 setForwardUuid (?string $forwardUuid)
 addParam (string $name, mixed $value)
 setParams ($params)
 resetParams ($params)
 getParams (bool $disallowLazyLoad=false)
 enableNotify ()
 disableNotify ()
 setAttach ($attach)
 getAttach ()
 setUrl (?UrlItem $url)
 getUrl ()
 setUnread (bool $isUnread)
 isUnread ()
 setViewed (bool $isViewed)
 isViewed ()
 isViewedByOthers ()
 setBotId (int $botId)
 setKeyboard ($keyboard)
 getKeyboard ()
 setMenu ($menu)
 getMenu ()
 setUuid (?string $uuid)
 getUuid ()
 setFileUuid (?string $uuid)
 getFileUuid ()
 getFileIds ()
 hasFiles ()
 setFiles ($files)
 fillFiles (FileCollection $files)
 addFile (Im\V2\Entity\File\FileItem $file)
 getFiles ()
 getPrevId ()
 setReactions (Im\V2\Message\Reaction\ReactionMessage $reactions)
 getReactions ()
 uploadFileFromText ()
 getFilesDiskData ()
 getReminder ()
 getAdditionalMessageIds ()
 getPopupData (array $excludedList=[])
 setMessageId (int $messageId)
 getMessageId ()
 setAuthorId (int $authorId)
 processChangeAuthorId (int $authorId)
 getAuthorId ()
 getAuthor ()
 setChatId (int $value)
 setChat (Chat $chat)
 getChatId ()
 getChat ()
 setMessage (?string $value)
 getMessage ()
 getParsedMessage ()
 getFormattedMessage ()
 getQuotedMessage (?int $messageSize=null)
 setMessageOut (?string $value)
 getMessageOut ()
 fillMessageOut ()
 setDateCreate ($value)
 getDateCreate ()
 getDefaultDateCreate ()
 setEmailTemplate (?string $value)
 getEmailTemplate ()
 setNotifyType (?int $value)
 getNotifyType ()
 getDefaultNotifyType ()
 setNotifyModule (?string $value)
 getNotifyModule ()
 getDefaultNotifyModule ()
 setNotifyEvent (?string $notifyEvent)
 processChangeNotifyEvent (?string $notifyEvent)
 getNotifyEvent ()
 getDefaultNotifyEvent ()
 setNotifyTag (?string $value)
 getNotifyTag ()
 setNotifySubTag (?string $value)
 getNotifySubTag ()
 setNotifyTitle (?string $value)
 getNotifyTitle ()
 setNotifyLink (?string $value)
 getNotifyLink ()
 setNotifyButtons ($value)
 getNotifyButtons ()
 markNotifyRead (?bool $value)
 isNotifyRead ()
 getDefaultNotifyRead ()
 markNotifyAnswer (?bool $value)
 allowNotifyAnswer ()
 markNotifyFlash (?bool $value)
 isNotifyFlash ()
 setImportId (?int $value)
 getImportId ()
 setPushMessage (?string $message)
 getPushMessage ()
 setPushParams (?array $params)
 getPushParams ()
 setPushAppId (?string $message)
 getPushAppId ()
 getPrimaryId ()
 setPrimaryId (int $primaryId)
 markAsFavorite ()
 unmarkAsFavorite ()
 pin ()
 unpin ()
 mark ()
 addToReminder (DateTime $dateRemind)
 getPreviewMessage (?int $messageSize=200)
 getForPush (?int $messageSize=200)
 checkAccess (?int $userId=null)
 getUserIds ()
 getUserIdsFromMention ()
 getUserIdsToSendMentions ()
 getUserIdsToSendMentionAnchors ()
 getEnrichedParams (bool $withUrl=true)
 isCompletelyEmpty ()
 getContextId ()
 isForward ()
 getForwardInfo ()
 toRestFormat (array $option=[])
 generateUrlPreview ()
 parseDates ()
 checkEmoji ()
 autocompleteParams (Im\V2\Message\Send\SendingConfig $config)
 getCopilotData ()
 getCopilotRole ()
 isCopilotMessage ()
 updateSearchIndex ()
 deleteSoft ()
 deleteComplete ()
 filterByDate (DateTime $date)
 getRelatedChatId ()
 filterMessageText ()
 getActionContextUserId ()
Открытые члены унаследованные от RegistryEntry
 setRegistry (Registry $registry)
 getRegistry ()
Открытые члены унаследованные от ActiveRecord
 load ($source)
 prepareFields ()
 getDataEntity ()
 delete ()
 markChanged ()
 isChanged ()
 markDrop ()
 isDeleted ()
 fill (array $source)
 toArray (bool $recursive)
Открытые члены унаследованные от Entity
 initializeField ($fieldName, $fieldInfo)
 reinitialize ($className)
 postInitialize ()
 getObjectClass ()
 getObjectClassName ()
 getCollectionClass ()
 getCollectionClassName ()
 createObject ($setDefaultValues=true)
 createCollection ()
 wakeUpObject ($row)
 wakeUpCollection ($rows)
 addField ($fieldInfo, $fieldName=null)
 getReferencesCountTo ($refEntityName)
 getReferencesTo ($refEntityName)
 getFields ()
 getField ($name)
 hasField ($name)
 getScalarFields ()
 getUField ($name)
 getName ()
 getFullName ()
 getNamespace ()
 getModule ()
 getDBTableName ()
 getPrimary ()
 getPrimaryArray ()
 getAutoIncrement ()
 isUts ()
 isUtm ()
 getUfId ()
 setDefaultScope ($query)
 getCode ()
 getLangCode ()
 getTitle ()
 __clone ()
 createDbTable ()
 readFromCache ($ttl, $cacheId, $countTotal=false)
 writeToCache (Main\DB\Result $result, $cacheId, $countTotal=false)
 getCacheTtl ($ttl)
 cleanCache ()
 enableFullTextIndex ($field, $mode=true)
 fullTextIndexEnabled ($field)

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

static getDataClass ()
static getRestEntityName ()
static loadPhrases ()
Открытые статические члены унаследованные от Entity
static get ($entityName)
static has ($entityName)
static getInstance ($entityName)
static getDefaultObjectClassName ($entityName)
static getDefaultCollectionClassName ($entityName)
static isExists ($name)
static normalizeEntityClass ($entityName)
static getEntityClassParts ($class)
static camel2snake ($str)
static snake2camel ($str)
static normalizeName ($entityName)
static compileObjectClass ($dataClass)
static compileCollectionClass ($dataClass)
static destroy ($entity)
static onUserTypeChange ($userfield, $id=null)

Поля данных

const MESSAGE_MAX_LENGTH = 20000
const REST_FIELDS = ['ID', 'CHAT_ID', 'AUTHOR_ID', 'DATE_CREATE', 'MESSAGE', 'NOTIFY_EVENT', 'NOTIFY_READ']
Поля данных унаследованные от Entity
const DEFAULT_OBJECT_PREFIX = 'EO_'

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

 serializeNotifyButtons ($value)
 unserializeNotifyButtons ($value)
 getContextTag ()
 getDefaultCopilotRole ()
Защищенные члены унаследованные от Entity
 appendField (Field $field)
 getCacheDir ()

Защищенные статические члены

static mirrorDataEntityFields ()

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

int $messageId = null
int $chatId = null
Chat $chat = null
int $authorId = 0
array $userIdsFromMention
string $message = null
string $parsedMessage = null
string $formattedMessage = null
string $messageOut = null
DateTime $dateCreate = null
string $emailTemplate = null
int $notifyType = \IM_NOTIFY_MESSAGE
string $notifyModule = null
string $notifyEvent = null
string $notifyTag = null
string $notifySubTag = null
string $notifyTitle = null
string $notifyLink = null
array $notifyButtons = null
bool $notifyRead = null
bool $notifyAnswer = null
bool $notifyFlash = null
int $importId = null
bool $isUnread = null
bool $isViewed = null
Params $params
FileCollection $files = null
Im V2 Message Reaction ReactionMessage $reactions
bool $isSystem = false
UrlItem $url
int $botId = 0
string $uuid = null
string $forwardUuid = null
string $fileUuid = null
bool $isUuidFilled = false
bool $isUrlFilled = false
bool $isMessageOutFilled = false
string $pushMessage = null
array $pushParams = null
string $pushAppId = null
bool $isImportant = false
array $importantFor = null
string $dialogId = null
int $prevId = null
Защищенные данные унаследованные от Entity
 $className
 $module
 $name
 $connectionName
 $dbTableName
 $primary
 $autoIncrement
 $uf_id
 $isUts
 $isUtm
 $fields
 $fieldsMap
 $u_fields
 $code
 $references
 $isClone = false

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

Статические защищенные данные унаследованные от Entity
static $instances
static $ufIdIndex = []

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

Chat version #2

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

Конструктор(ы)

◆ __construct()

__construct ( $source = null)
Аргументы
int | array | EO_Message | null$source

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

Методы

◆ addFile()

addFile ( Im\V2\Entity\File\FileItem $file)

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

◆ addParam()

addParam ( string $name,
mixed $value )

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

◆ addToReminder()

addToReminder ( DateTime $dateRemind)

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

◆ allowNotifyAnswer()

allowNotifyAnswer ( )

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

◆ autocompleteParams()

autocompleteParams ( Im\V2\Message\Send\SendingConfig $config)

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

◆ checkAccess()

checkAccess ( ?int $userId = null)

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

◆ checkEmoji()

checkEmoji ( )

Parse dates from message.

Возвращает
self

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

◆ deleteComplete()

deleteComplete ( )

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

◆ deleteSoft()

deleteSoft ( )

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

◆ disableNotify()

disableNotify ( )

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

◆ enableNotify()

enableNotify ( )

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

◆ fillFiles()

fillFiles ( FileCollection $files)

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

◆ fillMessageOut()

fillMessageOut ( )

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

◆ filterByDate()

filterByDate ( DateTime $date)
Аргументы
DateTime$date
Возвращает
FilterResult<?static>

Замещает DateFilterable.

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

◆ filterMessageText()

filterMessageText ( )

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

◆ generateUrlPreview()

generateUrlPreview ( )

Appends message with an url preview attachment.

Возвращает
void

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

◆ getActionContextUserId()

getActionContextUserId ( )

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

◆ getAdditionalMessageIds()

getAdditionalMessageIds ( )

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

◆ getAttach()

getAttach ( )
Возвращает
AttachArray|MessageParameter

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

◆ getAuthor()

getAuthor ( )

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

◆ getAuthorId()

getAuthorId ( )

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

◆ getChat()

getChat ( )

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

◆ getChatId()

getChatId ( )

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

◆ getContextId()

getContextId ( )

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

◆ getContextTag()

getContextTag ( )
protected

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

◆ getCopilotData()

getCopilotData ( )

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

◆ getCopilotRole()

getCopilotRole ( )

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

◆ getDataClass()

getDataClass ( )
static
Возвращает
string|DataManager;

Замещает ActiveRecord.

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

◆ getDateCreate()

getDateCreate ( )

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

◆ getDefaultCopilotRole()

getDefaultCopilotRole ( )
protected

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

◆ getDefaultDateCreate()

getDefaultDateCreate ( )

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

◆ getDefaultNotifyEvent()

getDefaultNotifyEvent ( )

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

◆ getDefaultNotifyModule()

getDefaultNotifyModule ( )

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

◆ getDefaultNotifyRead()

getDefaultNotifyRead ( )

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

◆ getDefaultNotifyType()

getDefaultNotifyType ( )

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

◆ getDisappearingTime()

getDisappearingTime ( )

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

◆ getEmailTemplate()

getEmailTemplate ( )

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

◆ getEnrichedParams()

getEnrichedParams ( bool $withUrl = true)

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

◆ getFileIds()

getFileIds ( )
Возвращает
int[]

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

◆ getFiles()

getFiles ( )
Возвращает
FileCollection

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

◆ getFilesDiskData()

getFilesDiskData ( )
Возвращает
array

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

◆ getFileUuid()

getFileUuid ( )

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

◆ getFormattedMessage()

getFormattedMessage ( )

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

◆ getForPush()

getForPush ( ?int $messageSize = 200)

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

◆ getForwardInfo()

getForwardInfo ( )

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

◆ getForwardUuid()

getForwardUuid ( )

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

◆ getId()

getId ( )

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

◆ getImportantFor()

getImportantFor ( )

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

◆ getImportId()

getImportId ( )

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

◆ getKeyboard()

getKeyboard ( )
Возвращает
Keyboard|MessageParameter

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

◆ getMenu()

getMenu ( )
Возвращает
Menu|MessageParameter

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

◆ getMessage()

getMessage ( )

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

◆ getMessageId()

getMessageId ( )

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

◆ getMessageOut()

getMessageOut ( )

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

◆ getNotifyButtons()

getNotifyButtons ( )

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

◆ getNotifyEvent()

getNotifyEvent ( )

Returns source module event id.

См. также
\Bitrix\Im\Notify
Возвращает
string|null

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

◆ getNotifyLink()

getNotifyLink ( )

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

◆ getNotifyModule()

getNotifyModule ( )

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

◆ getNotifySubTag()

getNotifySubTag ( )

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

◆ getNotifyTag()

getNotifyTag ( )

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

◆ getNotifyTitle()

getNotifyTitle ( )

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

◆ getNotifyType()

getNotifyType ( )

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

◆ getParams()

getParams ( bool $disallowLazyLoad = false)
Аргументы
bool$disallowLazyLoad
Возвращает
Params

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

◆ getParsedMessage()

getParsedMessage ( )

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

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

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

◆ getPrevId()

getPrevId ( )

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

◆ getPreviewMessage()

getPreviewMessage ( ?int $messageSize = 200)

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

◆ getPrimaryId()

getPrimaryId ( )
Возвращает
int|null

Замещает ActiveRecord.

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

◆ getPushAppId()

getPushAppId ( )

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

◆ getPushMessage()

getPushMessage ( )

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

◆ getPushParams()

getPushParams ( )

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

◆ getQuotedMessage()

getQuotedMessage ( ?int $messageSize = null)

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

◆ getReactions()

getReactions ( )
Возвращает
ReactionMessage

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

◆ getRelatedChatId()

getRelatedChatId ( )

Замещает DateFilterable.

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

◆ getReminder()

getReminder ( )

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

◆ getRestEntityName()

getRestEntityName ( )
static

Returns the name of the entity that will be used in the rest response

Возвращает
string

Замещает RestConvertible.

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

◆ getUrl()

getUrl ( )

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

◆ getUserIds()

getUserIds ( )

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

◆ getUserIdsFromMention()

getUserIdsFromMention ( )

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

◆ getUserIdsToSendMentionAnchors()

getUserIdsToSendMentionAnchors ( )

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

◆ getUserIdsToSendMentions()

getUserIdsToSendMentions ( )

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

◆ getUuid()

getUuid ( )

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

◆ hasFiles()

hasFiles ( )
Возвращает
bool

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

◆ isCompletelyEmpty()

isCompletelyEmpty ( )

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

◆ isCopilotMessage()

isCopilotMessage ( )

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

◆ isDisappearing()

isDisappearing ( )

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

◆ isForward()

isForward ( )

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

◆ isImportant()

isImportant ( )

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

◆ isNotifyFlash()

isNotifyFlash ( )

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

◆ isNotifyRead()

isNotifyRead ( )

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

◆ isSystem()

isSystem ( )

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

◆ isUnread()

isUnread ( )

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

◆ isViewed()

isViewed ( )

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

◆ isViewedByOthers()

isViewedByOthers ( )

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

◆ loadPhrases()

loadPhrases ( )
static

Lazy load message's context phrases.

Возвращает
void

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

◆ mark()

mark ( )

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

◆ markAsFavorite()

markAsFavorite ( )

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

◆ markAsImportant()

markAsImportant ( ?bool $isImportant = true)

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

◆ markAsSystem()

markAsSystem ( bool $flag)

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

◆ markNotifyAnswer()

markNotifyAnswer ( ?bool $value)

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

◆ markNotifyFlash()

markNotifyFlash ( ?bool $value)

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

◆ markNotifyRead()

markNotifyRead ( ?bool $value)

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

◆ mirrorDataEntityFields()

mirrorDataEntityFields ( )
staticprotected
Возвращает
array
См. также
Message::$messageId
Message::setMessageId
Message::getMessageId
Message::$chatId
Message::setChatId
Message::getChatId
Message::$authorId
Message::setAuthorId
Message::getAuthorId
Message::processChangeAuthorId
Message::$message
Message::setMessage
Message::getMessage
Message::$messageOut
Message::setMessageOut
Message::getMessageOut
Message::fillMessageOut
Message::$dateCreate
Message::setDateCreate
Message::getDateCreate
Message::getDefaultDateCreate
Message::$emailTemplate
Message::setEmailTemplate
Message::getEmailTemplate
Message::$notifyType
Message::setNotifyType
Message::getNotifyType
Message::getDefaultNotifyType
Message::$notifyModule
Message::setNotifyModule
Message::getNotifyModule
Message::getDefaultNotifyModule
Message::$notifyEvent
Message::setNotifyEvent
Message::getNotifyEvent
Message::getDefaultNotifyEvent
Message::processChangeNotifyEvent
Message::$notifyTag
Message::setNotifyTag
Message::getNotifyTag
Message::$notifySubTag
Message::setNotifySubTag
Message::getNotifySubTag
Message::$notifyTitle
Message::setNotifyTitle
Message::getNotifyTitle
Message::setNotifyLink
Message::getNotifyLink
Message::$notifyButtons
Message::setNotifyButtons
Message::getNotifyButtons
Message::serializeNotifyButtons
Message::unserializeNotifyButtons
Message::$notifyRead
Message::markNotifyRead
Message::isNotifyRead
Message::getDefaultNotifyRead
Message::markNotifyAnswer
Message::allowNotifyAnswer
Message::markNotifyFlash
Message::isNotifyFlash
Message::$importId
Message::setImportId
Message::getImportId
Message::markAsSystem
Message::isSystem
Message::setParams
Message::getParams
Message::setAttach
Message::getAttach
Message::setFiles
Message::getFiles
Message::setKeyboard
Message::getKeyboard
Message::setMenu
Message::getMenu
Message::setUuid
Message::getUuid
Message::setFileUuid
Message::getFileUuid
Message::setPushMessage
Message::getPushMessage
Message::setPushParams
Message::getPushParams
Message::setPushAppId
Message::getPushAppId

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

◆ parseDates()

parseDates ( )

Parse dates from message.

Возвращает
self

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

◆ pin()

pin ( )

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

◆ processChangeAuthorId()

processChangeAuthorId ( int $authorId)

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

◆ processChangeNotifyEvent()

processChangeNotifyEvent ( ?string $notifyEvent)

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

◆ resetParams()

resetParams ( $params)
Аргументы
array$params
Возвращает
$this

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

◆ save()

save ( )

Saves object state into database.

Возвращает
Result

Замещает ActiveRecord.

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

◆ serializeNotifyButtons()

serializeNotifyButtons ( $value)
protected

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

◆ setAttach()

setAttach ( $attach)
Аргументы
array | Param$attach
Возвращает
$this

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

◆ setAuthorId()

setAuthorId ( int $authorId)

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

◆ setBotId()

setBotId ( int $botId)

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

◆ setChat()

setChat ( Chat $chat)

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

◆ setChatId()

setChatId ( int $value)

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

◆ setDateCreate()

setDateCreate ( $value)
Аргументы
DateTime | string | null$value
Возвращает
static

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

◆ setEmailTemplate()

setEmailTemplate ( ?string $value)

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

◆ setFiles()

setFiles ( $files)
Аргументы
int[] | FileCollection$files
Возвращает
static

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

◆ setFileUuid()

setFileUuid ( ?string $uuid)

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

◆ setForwardUuid()

setForwardUuid ( ?string $forwardUuid)

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

◆ setImportantFor()

setImportantFor ( array $importantFor)

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

◆ setImportId()

setImportId ( ?int $value)

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

◆ setKeyboard()

setKeyboard ( $keyboard)
Аргументы
array | Param | Keyboard$keyboard
Возвращает
$this

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

◆ setMenu()

setMenu ( $menu)

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

◆ setMessage()

setMessage ( ?string $value)

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

◆ setMessageId()

setMessageId ( int $messageId)

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

◆ setMessageOut()

setMessageOut ( ?string $value)

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

◆ setNotifyButtons()

setNotifyButtons ( $value)

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

◆ setNotifyEvent()

setNotifyEvent ( ?string $notifyEvent)

Sets source module event id.

См. также
\Bitrix\Im\Notify
Возвращает
string|null

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

◆ setNotifyLink()

setNotifyLink ( ?string $value)

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

◆ setNotifyModule()

setNotifyModule ( ?string $value)

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

◆ setNotifySubTag()

setNotifySubTag ( ?string $value)

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

◆ setNotifyTag()

setNotifyTag ( ?string $value)

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

◆ setNotifyTitle()

setNotifyTitle ( ?string $value)

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

◆ setNotifyType()

setNotifyType ( ?int $value)

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

◆ setParams()

setParams ( $params)
Аргументы
array$params
Возвращает
$this

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

◆ setPrimaryId()

setPrimaryId ( int $primaryId)
Аргументы
int$primaryId
Возвращает
self

Замещает ActiveRecord.

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

◆ setPushAppId()

setPushAppId ( ?string $message)
Аргументы
string | null$message
Возвращает
self

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

◆ setPushMessage()

setPushMessage ( ?string $message)
Аргументы
string | null$message
Возвращает
self

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

◆ setPushParams()

setPushParams ( ?array $params)
Аргументы
array | null$params
Возвращает
self

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

◆ setReactions()

setReactions ( Im\V2\Message\Reaction\ReactionMessage $reactions)
Аргументы
ReactionMessage$reactions
Возвращает
$this

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

◆ setUnread()

setUnread ( bool $isUnread)

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

◆ setUrl()

setUrl ( ?UrlItem $url)

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

◆ setUuid()

setUuid ( ?string $uuid)
Аргументы
string | null$uuid
Возвращает
self

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

◆ setViewed()

setViewed ( bool $isViewed)

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

◆ toRestFormat()

toRestFormat ( array $option = [])
Аргументы
array$option
Возвращает
array

Замещает RestConvertible.

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

◆ unmarkAsFavorite()

unmarkAsFavorite ( )

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

◆ unpin()

unpin ( )

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

◆ unserializeNotifyButtons()

unserializeNotifyButtons ( $value)
protected

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

◆ updateSearchIndex()

updateSearchIndex ( )

Update search index record.

Возвращает
void

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

◆ uploadFileFromText()

uploadFileFromText ( )

Extracts and saves files from message text.

Возвращает
array

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

Поля

◆ $authorId

int $authorId = 0
protected

Created by Id

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

◆ $botId

int $botId = 0
protected

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

◆ $chat

Chat $chat = null
protected

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

◆ $chatId

int $chatId = null
protected

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

◆ $dateCreate

DateTime $dateCreate = null
protected

message creation date.

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

◆ $dialogId

string $dialogId = null
protected

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

◆ $emailTemplate

string $emailTemplate = null
protected

E-mail template code.

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

◆ $files

FileCollection $files = null
protected

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

◆ $fileUuid

string $fileUuid = null
protected

File UUID.

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

◆ $formattedMessage

string $formattedMessage = null
protected

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

◆ $forwardUuid

string $forwardUuid = null
protected

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

◆ $importantFor

array $importantFor = null
protected

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

◆ $importId

int $importId = null
protected

The ID of the message to be imported.

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

◆ $isImportant

bool $isImportant = false
protected

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

◆ $isMessageOutFilled

bool $isMessageOutFilled = false
protected

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

◆ $isSystem

bool $isSystem = false
protected

Display message as a system notification.

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

◆ $isUnread

bool $isUnread = null
protected

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

◆ $isUrlFilled

bool $isUrlFilled = false
protected

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

◆ $isUuidFilled

bool $isUuidFilled = false
protected

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

◆ $isViewed

bool $isViewed = null
protected

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

◆ $message

string $message = null
protected

Message to send

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

◆ $messageId

int $messageId = null
protected

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

◆ $messageOut

string $messageOut = null
protected

Formatted rich message

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

◆ $notifyAnswer

bool $notifyAnswer = null
protected

Allow answering right in notification balloon.

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

◆ $notifyButtons

array $notifyButtons = null
protected

Serialized button's data available with NOTIFY_TYPE = 1 Array( Array('TITLE' => 'OK', 'VALUE' => 'Y', 'TYPE' => 'accept', 'URL' => '/test.php?CONFIRM=Y'), Array('TITLE' => 'Cancel', 'VALUE' => 'N', 'TYPE' => 'cancel', 'URL' => '/test.php?CONFIRM=N'), )

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

◆ $notifyEvent

string $notifyEvent = null
protected

Source module event id for search (ex: IM_GROUP_INVITE).

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

◆ $notifyFlash

bool $notifyFlash = null
protected

Display only balloon without adding message into notification list.

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

◆ $notifyLink

string $notifyLink = null
protected

Url to dislplay in notification balloon.

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

◆ $notifyModule

string $notifyModule = null
protected

Source module id (ex: xmpp, main, etc).

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

◆ $notifyRead

bool $notifyRead = null
protected

Message seen flag

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

◆ $notifySubTag

string $notifySubTag = null
protected

Second TAG for search in table.

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

◆ $notifyTag

string $notifyTag = null
protected

Field for group in JS notification and search in table.

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

◆ $notifyTitle

string $notifyTitle = null
protected

Notify title for sending email.

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

◆ $notifyType

int $notifyType = \IM_NOTIFY_MESSAGE
protected

Notification type:

См. также
\IM_NOTIFY_MESSAGE = 0 - message,
\IM_NOTIFY_CONFIRM = 1 - confirm,
\IM_NOTIFY_FROM = 2 - notify single from,
\IM_NOTIFY_SYSTEM = 4 - notify single.

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

◆ $params

Params $params
protected

Message additional parameters.

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

◆ $parsedMessage

string $parsedMessage = null
protected

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

◆ $prevId

int $prevId = null
protected

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

◆ $pushAppId

string $pushAppId = null
protected

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

◆ $pushMessage

string $pushMessage = null
protected

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

◆ $pushParams

array $pushParams = null
protected

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

◆ $reactions

Im V2 Message Reaction ReactionMessage $reactions
protected

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

◆ $url

UrlItem $url
protected

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

◆ $userIdsFromMention

array $userIdsFromMention
protected

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

◆ $uuid

string $uuid = null
protected

Message UUID.

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

◆ MESSAGE_MAX_LENGTH

const MESSAGE_MAX_LENGTH = 20000

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

◆ REST_FIELDS

const REST_FIELDS = ['ID', 'CHAT_ID', 'AUTHOR_ID', 'DATE_CREATE', 'MESSAGE', 'NOTIFY_EVENT', 'NOTIFY_READ']

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


Объявления и описания членов класса находятся в файле: