Bitrix API

Message

Table of Contents

Constants

QUOTE_END_MARKER_HTML  = '<div id="qemb24msrv" style="font-family: \'qemb24msrv\', serif;">&nbsp;</div>'
QUOTE_HTML_REGEX  = '/<div\s[^>]+srvb24mqsm[^>]+>.*?<\/div>(.*)<div\s[^>]+qemb24msrv[^>]+>.*?<\/div>/is'
QUOTE_PLACEHOLDER  = '__QUOTE_PLACEHOLDER__'
QUOTE_START_MARKER_HTML  = '<div id="srvb24mqsm" style="font-family: \'srvb24mqsm\', serif;">&nbsp;</div>'

Methods

__construct()  : mixed
attachmentsCount()  : int
Returns message attachments count
getQuoteEndMarker()  : string
Returns quote end marker
getQuoteStartMarker()  : string
Returns quote start marker
getSelectedRecipientsForDialog()  : ItemCollection
parseForward()  : string
Returns parsed forward text
parseMessage()  : mixed
parseReply()  : string
Returns parsed reply text
reduceHead()  : string
Returns non-paired bb-codes only
stripQuotes()  : string
wrapTheMessageWithAQuote()  : string

Constants

QUOTE_END_MARKER_HTML

public mixed QUOTE_END_MARKER_HTML = '<div id="qemb24msrv" style="font-family: \'qemb24msrv\', serif;">&nbsp;</div>'

QUOTE_HTML_REGEX

public mixed QUOTE_HTML_REGEX = '/<div\s[^>]+srvb24mqsm[^>]+>.*?<\/div>(.*)<div\s[^>]+qemb24msrv[^>]+>.*?<\/div>/is'

QUOTE_PLACEHOLDER

public mixed QUOTE_PLACEHOLDER = '__QUOTE_PLACEHOLDER__'

QUOTE_START_MARKER_HTML

public mixed QUOTE_START_MARKER_HTML = '<div id="srvb24mqsm" style="font-family: \'srvb24mqsm\', serif;">&nbsp;</div>'

Methods

__construct()

public __construct(array<string|int, mixed> &$message, mixed $type) : mixed
Parameters
$message : array<string|int, mixed>
$type : mixed

attachmentsCount()

Returns message attachments count

public attachmentsCount() : int
Return values
int

getQuoteEndMarker()

Returns quote end marker

public final static getQuoteEndMarker([bool $html = false ]) : string
Parameters
$html : bool = false

Html/text switch.

Return values
string

getQuoteStartMarker()

Returns quote start marker

public final static getQuoteStartMarker([bool $html = false ]) : string
Parameters
$html : bool = false

Html/text switch.

Return values
string

getSelectedRecipientsForDialog()

public final static getSelectedRecipientsForDialog([mixed $recipients = [] ][, mixed $updateData = false ]) : ItemCollection
Parameters
$recipients : mixed = []
$updateData : mixed = false
Return values
ItemCollection

parseForward()

Returns parsed forward text

public static parseForward(array<string|int, mixed> &$message) : string
Parameters
$message : array<string|int, mixed>

Message.

Return values
string

parseMessage()

public static parseMessage(array<string|int, mixed> &$message) : mixed
Parameters
$message : array<string|int, mixed>

parseReply()

Returns parsed reply text

public static parseReply(array<string|int, mixed> &$message) : string
Parameters
$message : array<string|int, mixed>

Message.

Return values
string

reduceHead()

Returns non-paired bb-codes only

public static reduceHead(string|array<string|int, mixed> &$text) : string
Parameters
$text : string|array<string|int, mixed>

Text.

Return values
string

stripQuotes()

public static stripQuotes(mixed $text) : string
Parameters
$text : mixed
Return values
string

wrapTheMessageWithAQuote()

public final static wrapTheMessageWithAQuote(mixed $body, mixed $subject, mixed $timeString[, mixed $from = [] ][, mixed $to = [] ][, mixed $cc = [] ][, bool $sanitized = false ]) : string
Parameters
$body : mixed
$subject : mixed
$timeString : mixed
$from : mixed = []
$to : mixed = []
$cc : mixed = []
$sanitized : bool = false
Return values
string

        
On this page

Search results