1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Message

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

static getMaxAttachedFilesSize ()
static getMaxAttachedFilesSizeAfterEncoding ()
static getWhitelistTagAttributes ()
static prepare (&$message)
static hasAccess (&$message, $userId=null)
static prepareSearchContent (&$fields)
static prepareSearchString ($string)
static getCountersForUserMailboxes ($userId, $onlyGeneralCounter=false)
static ensureAttachments (&$message)
static parseAddressList ($column)
static isolateSelector ($matches)
static isolateStylesInTheTag ($matches)
static isolateStylesInTheBody ($html)
static isolateMessageStyles ($messageHtml)
static sanitizeHtml ($html, $isolateStyles=false)
static reSyncBody ($mailboxId, $messageIds)
static getSaltByEntityType (string $entityType, int $entityId, ?int $userId=null)
static isMailboxOwner (int $mailboxId, int $userId)
static updateMailEntityOptionsRow ($mailboxId, $messageId)
static isBodyNeedUpdateAfterLoadAttachments (string $body)
static replaceBodyInlineImgContentId (string $body, string $contentId, int $attachmentId)
static isolateBase64Files (string $text)
static isIcalMessage (\Bitrix\Mail\Item\Message $message)

Поля данных

const ENTITY_TYPE_IM_CHAT = MessageAccessTable::ENTITY_TYPE_IM_CHAT
const ENTITY_TYPE_CALENDAR_EVENT = MessageAccessTable::ENTITY_TYPE_CALENDAR_EVENT

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

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

Методы

◆ ensureAttachments()

ensureAttachments ( & $message)
static

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

◆ getCountersForUserMailboxes()

getCountersForUserMailboxes ( $userId,
$onlyGeneralCounter = false )
static
Аргументы
$userId
$onlyGeneralCounter
Возвращает
array|int

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

◆ getMaxAttachedFilesSize()

getMaxAttachedFilesSize ( )
static

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

◆ getMaxAttachedFilesSizeAfterEncoding()

getMaxAttachedFilesSizeAfterEncoding ( )
static

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

◆ getSaltByEntityType()

getSaltByEntityType ( string $entityType,
int $entityId,
?int $userId = null )
static

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

◆ getWhitelistTagAttributes()

getWhitelistTagAttributes ( )
static

Returns a whitelist of attributes for the html sanitizer (\CBXSanitizer::SanitizeHtml)

Возвращает
array

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

◆ hasAccess()

hasAccess ( & $message,
$userId = null )
static

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

◆ isBodyNeedUpdateAfterLoadAttachments()

isBodyNeedUpdateAfterLoadAttachments ( string $body)
static

Is message body contains link to attachment

Аргументы
string$bodyHTML body of message
Возвращает
bool

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

◆ isIcalMessage()

isIcalMessage ( \Bitrix\Mail\Item\Message $message)
static

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

◆ isMailboxOwner()

isMailboxOwner ( int $mailboxId,
int $userId )
static

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

◆ isolateBase64Files()

isolateBase64Files ( string $text)
static

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

◆ isolateMessageStyles()

isolateMessageStyles ( $messageHtml)
static

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

◆ isolateSelector()

isolateSelector ( $matches)
static

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

◆ isolateStylesInTheBody()

isolateStylesInTheBody ( $html)
static

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

◆ isolateStylesInTheTag()

isolateStylesInTheTag ( $matches)
static

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

◆ parseAddressList()

parseAddressList ( $column)
static

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

◆ prepare()

prepare ( & $message)
static

Adapts a message(result of Mail\MailMessageTable::getList) for output in the public interface.

Аргументы
array&$message,(resultof Mail\MailMessageTable::getList. Changes the data in a variable!).
Возвращает
array(modified $message).

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

◆ prepareSearchContent()

prepareSearchContent ( & $fields)
static

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

◆ prepareSearchString()

prepareSearchString ( $string)
static

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

◆ replaceBodyInlineImgContentId()

replaceBodyInlineImgContentId ( string $body,
string $contentId,
int $attachmentId )
static

Replace html body inline image content id with attachment id

Аргументы
string$bodyHTML string
string$contentIdContent Id in img tag (with or without http://)
int$attachmentIdAttachment ID in DB
Возвращает
string

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

◆ reSyncBody()

reSyncBody ( $mailboxId,
$messageIds )
static

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

◆ sanitizeHtml()

sanitizeHtml ( $html,
$isolateStyles = false )
static

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

◆ updateMailEntityOptionsRow()

updateMailEntityOptionsRow ( $mailboxId,
$messageId )
static
Аргументы
$mailboxId
$messageId
Возвращает
void

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

Поля

◆ ENTITY_TYPE_CALENDAR_EVENT

const ENTITY_TYPE_CALENDAR_EVENT = MessageAccessTable::ENTITY_TYPE_CALENDAR_EVENT

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

◆ ENTITY_TYPE_IM_CHAT

const ENTITY_TYPE_IM_CHAT = MessageAccessTable::ENTITY_TYPE_IM_CHAT

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


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