Bitrix API

PlainText extends Body

FinalYes

Table of Contents

Constants

ARRAY_INDEX_MODIFIER  = 'index'
BLOCK_END_PLACEHOLDER  = 'BLOCK_END'
BLOCK_START_PLACEHOLDER  = 'BLOCK_START'

Methods

__construct()  : mixed
Body constructor.
detectHtml()  : bool
getCodeFromPlaceholder()  : string
getContent()  : string
getFieldNames()  : array<string|int, mixed>
getFields()  : array<string|int, mixed>
getFileExtension()  : string
getFileMimeType()  : string
getPlaceholders()  : array<string|int, mixed>
getStorage()  : Storage
isFileProcessable()  : bool
normalizeContent()  : mixed
Normalizes content of the body.
process()  : Result
Parse $content, process commands, fill values.
readFromStorage()  : static|false
save()  : AddResult
setExcludedPlaceholders()  : mixed
Set placeholders list that will not be filled with values.
setFields()  : $this
setStorage()  : $this
setValues()  : $this

Constants

ARRAY_INDEX_MODIFIER

public mixed ARRAY_INDEX_MODIFIER = 'index'

BLOCK_END_PLACEHOLDER

public mixed BLOCK_END_PLACEHOLDER = 'BLOCK_END'

BLOCK_START_PLACEHOLDER

public mixed BLOCK_START_PLACEHOLDER = 'BLOCK_START'

Methods

__construct()

Body constructor.

public __construct(string $content) : mixed
Parameters
$content : string

detectHtml()

public static detectHtml(string $string) : bool
Parameters
$string : string
Return values
bool

getCodeFromPlaceholder()

public static getCodeFromPlaceholder(string $code) : string
Parameters
$code : string
Return values
string

getContent()

public getContent() : string
Return values
string

getFieldNames()

public getFieldNames() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFields()

public getFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFileExtension()

public getFileExtension() : string
Return values
string

getFileMimeType()

public getFileMimeType() : string
Return values
string

getPlaceholders()

public getPlaceholders() : array<string|int, mixed>
Return values
array<string|int, mixed>

getStorage()

public getStorage() : Storage
Return values
Storage

isFileProcessable()

public isFileProcessable() : bool
Return values
bool

normalizeContent()

Normalizes content of the body.

public normalizeContent() : mixed

process()

Parse $content, process commands, fill values.

public process() : Result

Returns true on success, false on failure.

Return values
Result

readFromStorage()

public static readFromStorage(Storage $storage, mixed $from) : static|false
Parameters
$storage : Storage
$from : mixed
Return values
static|false

save()

public save(array<string|int, mixed> $options[, Storage|null $storage = null ]) : AddResult
Parameters
$options : array<string|int, mixed>
$storage : Storage|null = null
Return values
AddResult

setExcludedPlaceholders()

Set placeholders list that will not be filled with values.

public setExcludedPlaceholders(array<string|int, mixed> $placeholders) : mixed
Parameters
$placeholders : array<string|int, mixed>

setFields()

public setFields(array<string|int, mixed> $fields) : $this
Parameters
$fields : array<string|int, mixed>
Return values
$this

setStorage()

public setStorage(Storage $storage) : $this
Parameters
$storage : Storage
Return values
$this

setValues()

public setValues(array<string|int, mixed> $values) : $this
Parameters
$values : array<string|int, mixed>
Return values
$this

        
On this page

Search results