TestConsentBuilderMail extends ConsentBuilderMail
Table of Contents
Constants
- CODE = \Bitrix\Sender\Transport\iBase::CODE_MAIL . \Bitrix\Sender\Consent\ConsentMessageBuilderFactory::TEST_POSTFIX
- CONSENT_EVENT = "SENDER_CONSENT"
- REQUIRED_FIELDS = ['CONTACT_CODE', 'SITE_ID']
Methods
- __construct() : mixed
- buildMessage() : array<string|int, mixed>
- build consent message
- get() : mixed
- get builder parameter
- set() : mixed
- set builder parameter
- setFields() : $this
- set builders parameters
Constants
CODE
public
mixed
CODE
= \Bitrix\Sender\Transport\iBase::CODE_MAIL . \Bitrix\Sender\Consent\ConsentMessageBuilderFactory::TEST_POSTFIX
CONSENT_EVENT
public
mixed
CONSENT_EVENT
= "SENDER_CONSENT"
REQUIRED_FIELDS
public
mixed
REQUIRED_FIELDS
= ['CONTACT_CODE', 'SITE_ID']
Methods
__construct()
public
__construct([array<string|int, mixed>|null $fields = null ]) : mixed
Parameters
- $fields : array<string|int, mixed>|null = null
buildMessage()
build consent message
public
buildMessage() : array<string|int, mixed>
Return values
array<string|int, mixed> —for \Bitrix\Main\Mail\Event
get()
get builder parameter
public
get(string $field) : mixed
Parameters
- $field : string
set()
set builder parameter
public
set(string $field, mixed $value) : mixed
Parameters
- $field : string
- $value : mixed
setFields()
set builders parameters
public
setFields(array<string|int, mixed>|null $fieldForConsent) : $this
Parameters
- $fieldForConsent : array<string|int, mixed>|null