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
public
mixed
EMAIL
= 1
HTML_LAYOUT
public
mixed
HTML_LAYOUT
= 4
PHONE
public
mixed
PHONE
= 2
TEXT
public
mixed
TEXT
= 0
USER
public
mixed
USER
= 3
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
$thisaddCallback()
Add callback.
public
addCallback(callable $callback) : $this
Parameters
- $callback : callable
-
Callback.
Tags
Return values
$thisaddEmail()
Add email.
public
addEmail(string $email) : $this
Parameters
- $email : string
-
Email.
Return values
$thisaddField()
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
$thisaddHtmlLayout()
Add html layout.
public
addHtmlLayout(string $layout[, int|null $length = null ]) : $this
Parameters
- $layout : string
-
Layout.
- $length : int|null = null
-
Length.
Return values
$thisaddPhone()
Add phone.
public
addPhone(string $phone) : $this
Parameters
- $phone : string
-
Phone.
Return values
$thisaddRecipient()
Add recipient.
public
addRecipient(string $code, int $typeId) : $this
Parameters
- $code : string
-
Code.
- $typeId : int
-
Type ID.
Return values
$thisaddText()
Add text.
public
addText(string $text[, int|null $length = null ]) : $this
Parameters
- $text : string
-
Text.
- $length : int|null = null
-
Length.
Return values
$thisaddUserById()
Add user by id.
public
addUserById(int $userID) : $this
Parameters
- $userID : int
-
User ID.
Return values
$thisclear()
Clear.
public
clear() : $this
Return values
$thisencodeText()
Encode text.
public
static encodeText(string $text) : string
Parameters
- $text : string
-
Text.
Return values
stringgetString()
Get string.
public
getString() : string