Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс TransportMail
+ Граф наследования:TransportMail:

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

 __construct ()
 
 getName ()
 
 getCode ()
 
 getSupportedRecipientTypes ()
 
 loadConfiguration ($id=null)
 
 saveConfiguration (Message\Configuration $configuration)
 
 start ()
 
 send (Message\Adapter $message)
 
 end ()
 
 getDuration (Message\Adapter $message=null)
 
 getLimiters (Message\iBase $message=null)
 
 sendConsent (Message\Adapter $message, Consent\AbstractConsentMessageBuilder $builder)
 
 isConsentNeed ()
 
 getConsentMaxRequests ()
 
- Открытые члены унаследованные от iBase
 getSupportedTransports ()
 
 saveConfiguration (Configuration $configuration)
 
 copyConfiguration ($id)
 

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

static replaceTemplate (?string $str)
 

Открытые атрибуты

const CODE = self::CODE_MAIL
 
- Открытые атрибуты унаследованные от iBase
const CODE_MAIL = 'mail'
 
const CODE_TOLOKA = 'toloka'
 
const CODE_WEB_HOOK = 'web_hook'
 
const CODE_SMS = 'sms'
 
const CODE_IM = 'im'
 
const CODE_CALL = 'call'
 
const CODE_AUDIO_CALL = 'audio_call'
 
const CODE_UNDEFINED = ''
 
const CODE_MASTER_YANDEX = 'master_yandex'
 
const EVENT_NAME = 'onSenderMessageList'
 

Защищенные члены

 getSenderLinkProtocol ()
 
 canTrackMails ()
 
 getMailContext ()
 
 getCleanMailAddress ($address)
 
 getMailContextForMessage (Message\Adapter $message)
 

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

 $configuration
 
 $mailContext
 
 $mailAddress
 

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

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

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

◆ __construct()

__construct ( )

TransportMail constructor.

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

Методы

◆ canTrackMails()

canTrackMails ( )
protected

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

◆ end()

end ( )

End.

Возвращает
void

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

◆ getCleanMailAddress()

getCleanMailAddress ( $address)
protected

Get clean address.

Аргументы
string$addressAddress.
Возвращает
string|null

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

◆ getCode()

getCode ( )

Get code.

Возвращает
string

Замещает iBase.

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

◆ getConsentMaxRequests()

getConsentMaxRequests ( )

get max consent request num

Возвращает
int

Замещает iConsent.

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

◆ getDuration()

getDuration ( Message\Adapter $message = null)

Get send duration in seconds.

Аргументы
Message\Adapter | null$messageMessage.
Возвращает
float

Замещает iDuration.

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

◆ getLimiters()

getLimiters ( Message\iBase $message = null)

Get limiters.

Аргументы
Message\iBase$messageMessage.
Возвращает
Transport\iLimiter[]

Замещает iLimitation.

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

◆ getMailContext()

getMailContext ( )
protected

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

◆ getMailContextForMessage()

getMailContextForMessage ( Message\Adapter $message)
protected

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

◆ getName()

getName ( )

Get name.

Возвращает
string

Замещает iBase.

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

◆ getSenderLinkProtocol()

getSenderLinkProtocol ( )
protected

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

◆ getSupportedRecipientTypes()

getSupportedRecipientTypes ( )

Get supported recipient types.

Возвращает
integer[]

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

◆ isConsentNeed()

isConsentNeed ( )

check if consent Option is turn on

Возвращает
bool

Замещает iConsent.

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

◆ loadConfiguration()

loadConfiguration ( $id = null)

Load configuration.

Аргументы
string | null$idID.
Возвращает
Message\Configuration

Замещает iBase.

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

◆ replaceTemplate()

static replaceTemplate ( ?string $str)
static
Аргументы
string | null$str
Возвращает
array|string|string[]|null

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

◆ saveConfiguration()

saveConfiguration ( Message\Configuration $configuration)

Save configuration.

Аргументы
Message\Configuration$configurationConfiguration.
Возвращает
Result|null

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

◆ send()

send ( Message\Adapter $message)

Send.

Аргументы
Message\Adapter$messageMessage.
Возвращает
bool

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

◆ sendConsent()

sendConsent ( Message\Adapter $message,
Consent\AbstractConsentMessageBuilder $builder )

send Consent Message to Recipient

Аргументы
Message\Adapter$message
Consent\AbstractConsentMessageBuilder$builder
Возвращает
bool

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

◆ start()

start ( )

Start.

Возвращает
void

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

Данные класса

◆ $configuration

$configuration
protected

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

◆ $mailAddress

$mailAddress
protected

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

◆ $mailContext

$mailContext
protected

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

◆ CODE

const CODE = self::CODE_MAIL

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