Bitrix API

Content

Class Content

Table of Contents

Constants

EMAIL  = 1
HTML_LAYOUT  = 4
PHONE  = 2
TEXT  = 0
USER  = 3

Methods

add()  : $this
Add.
addCallback()  : $this
Add callback.
addEmail()  : $this
Add email.
addField()  : $this
Add one field from fields.
addHtmlLayout()  : $this
Add html layout.
addPhone()  : $this
Add phone.
addRecipient()  : $this
Add recipient.
addText()  : $this
Add text.
addUserById()  : $this
Add user by id.
clear()  : $this
Clear.
encodeText()  : string
Encode text.
getString()  : string
Get string.

Constants

HTML_LAYOUT

public mixed HTML_LAYOUT = 4

Methods

add()

Add.

public add(string $value[, int $typeId = self::TEXT ][, int|null $length = null ]) : $this
Parameters
$value : string

Value.

$typeId : int = self::TEXT

Type ID.

$length : int|null = null

Length.

Return values
$this

addCallback()

Add callback.

public addCallback(callable $callback) : $this
Parameters
$callback : callable

Callback.

Tags
throws
ArgumentException
Return values
$this

addEmail()

Add email.

public addEmail(string $email) : $this
Parameters
$email : string

Email.

Return values
$this

addField()

Add one field from fields.

public addField(array<string|int, mixed> $fields, string $name[, int $typeId = self::TEXT ][, int|null $length = null ]) : $this
Parameters
$fields : array<string|int, mixed>

Fields.

$name : string

Name.

$typeId : int = self::TEXT

Type ID.

$length : int|null = null

Length.

Return values
$this

addHtmlLayout()

Add html layout.

public addHtmlLayout(string $layout[, int|null $length = null ]) : $this
Parameters
$layout : string

Layout.

$length : int|null = null

Length.

Return values
$this

addPhone()

Add phone.

public addPhone(string $phone) : $this
Parameters
$phone : string

Phone.

Return values
$this

addRecipient()

Add recipient.

public addRecipient(string $code, int $typeId) : $this
Parameters
$code : string

Code.

$typeId : int

Type ID.

Return values
$this

addText()

Add text.

public addText(string $text[, int|null $length = null ]) : $this
Parameters
$text : string

Text.

$length : int|null = null

Length.

Return values
$this

addUserById()

Add user by id.

public addUserById(int $userID) : $this
Parameters
$userID : int

User ID.

Return values
$this

clear()

Clear.

public clear() : $this
Return values
$this

encodeText()

Encode text.

public static encodeText(string $text) : string
Parameters
$text : string

Text.

Return values
string

getString()

Get string.

public getString() : string
Return values
string

        
On this page

Search results