1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Action
Граф наследования:Action:
ActionEmail ActionSms

Открытые члены

 __construct ($type, $recipient, $text)
 getType ()
 getRecipient ()
 getText ()
 send (Notification $notification)

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

static createByType ($type, $recipient, $text)

Поля данных

const TYPE_EMAIL = 'email'
const TYPE_SMS = 'sms'

Защищенные статические члены

static getNotificationFields (Notification $notification)

Защищенные данные

 $type
 $recipient
 $text

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

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

Конструктор(ы)

◆ __construct()

__construct ( $type,
$recipient,
$text )

Action constructor.

Аргументы
string$type
string$recipient
string$text

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

Методы

◆ createByType()

createByType ( $type,
$recipient,
$text )
static

Creates an action by its type.

Аргументы
string$type
string$recipient
string$text
Возвращает
Action
Исключения

Bitrix\Main\ArgumentException

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

◆ getNotificationFields()

getNotificationFields ( Notification $notification)
staticprotected

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

◆ getRecipient()

getRecipient ( )

Returns a receiver.

Возвращает
string

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

◆ getText()

getText ( )

Returns a text.

Возвращает
string

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

◆ getType()

getType ( )

Returns a type of the action.

Возвращает
string

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

◆ send()

send ( Notification $notification)
abstract

Sends a notification.

Аргументы
Notification$notification

Переопределяется в ActionEmail и ActionSms.

Поля

◆ $recipient

$recipient
protected

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

◆ $text

$text
protected

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

◆ $type

$type
protected

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

◆ TYPE_EMAIL

const TYPE_EMAIL = 'email'

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

◆ TYPE_SMS

const TYPE_SMS = 'sms'

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


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