Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
consentmessagebuilderfactory.php
1
<?php
2
3
namespace
Bitrix\Sender\Consent
;
4
5
use
Bitrix\Sender\Integration\EventHandler
;
6
use
Bitrix\Sender\Internals\CodeBasedFactory
;
7
8
class
ConsentMessageBuilderFactory
extends
CodeBasedFactory
9
{
10
const
TEST_POSTFIX
=
'_test'
;
11
19
public
static
function
getConsentBuilder
(
string
$code): ?
iConsentMessageBuilder
20
{
21
return
static::getObjectInstance(static::getInterface(), $code);
22
}
23
24
public
static
function
getTestMessageConsentBuilder
($code)
25
{
26
return
static::getObjectInstance(static::getInterface(), $code . static::TEST_POSTFIX);
27
}
28
29
protected
static
function
getInterface
(): string
30
{
31
return
iConsentMessageBuilder::class;
32
}
33
34
protected
static
function
getClasses
(): array
35
{
36
return
[
iConsentMessageBuilder::EVENT_NAME
=>
EventHandler::onSenderConsentMessageBuildersList
()];
37
}
38
}
Bitrix\Sender\Consent\ConsentMessageBuilderFactory
Definition
consentmessagebuilderfactory.php:9
Bitrix\Sender\Consent\ConsentMessageBuilderFactory\getConsentBuilder
static getConsentBuilder(string $code)
Definition
consentmessagebuilderfactory.php:19
Bitrix\Sender\Consent\ConsentMessageBuilderFactory\getClasses
static getClasses()
Definition
consentmessagebuilderfactory.php:34
Bitrix\Sender\Consent\ConsentMessageBuilderFactory\TEST_POSTFIX
const TEST_POSTFIX
Definition
consentmessagebuilderfactory.php:10
Bitrix\Sender\Consent\ConsentMessageBuilderFactory\getTestMessageConsentBuilder
static getTestMessageConsentBuilder($code)
Definition
consentmessagebuilderfactory.php:24
Bitrix\Sender\Consent\ConsentMessageBuilderFactory\getInterface
static getInterface()
Definition
consentmessagebuilderfactory.php:29
Bitrix\Sender\Integration\EventHandler
Definition
eventhandler.php:34
Bitrix\Sender\Integration\EventHandler\onSenderConsentMessageBuildersList
static onSenderConsentMessageBuildersList()
Definition
eventhandler.php:322
Bitrix\Sender\Internals\CodeBasedFactory
Definition
codebasedfactory.php:18
Bitrix\Sender\Consent\iConsentMessageBuilder
Definition
iconsentmessagebuilder.php:6
Bitrix\Sender\Consent\iConsentMessageBuilder\EVENT_NAME
const EVENT_NAME
Definition
iconsentmessagebuilder.php:7
Bitrix\Sender\Consent
Definition
abstractconsentmessagebuilder.php:3
modules
sender
lib
consent
consentmessagebuilderfactory.php
Создано системой
1.10.0