Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
messagelookalikevk.php
1
<?php
9
namespace
Bitrix\Sender\Integration\Seo\Ads
;
10
11
use
Bitrix\Main\Localization\Loc
;
12
17
class
MessageLookalikeVk
extends
MessageLookalike
18
{
19
const
CODE
=
self::CODE_ADS_LOOKALIKE_VK
;
20
25
public
function
getName
()
26
{
27
return
Loc::getMessage
(
'SENDER_INTEGRATION_SEO_MESSAGE_NAME_ADS_LOOKALIKE_VK'
);
28
}
29
30
protected
function
setConfigurationOptions
()
31
{
32
$this->configuration->setArrayOptions(array(
33
array(
34
'type'
=>
'string'
,
35
'code'
=>
'CLIENT_ID'
,
36
'name'
=>
Loc::getMessage
(
'SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_CLIENT_ID'
),
37
'required'
=>
true
,
38
),
39
array(
40
'type'
=>
'string'
,
41
'code'
=>
'ACCOUNT_ID'
,
42
'name'
=>
Loc::getMessage
(
'SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_ACCOUNT_ID'
),
43
'required'
=>
true
,
44
),
45
array(
46
'type'
=>
'string'
,
47
'code'
=>
'AUDIENCE_ID'
,
48
'name'
=>
Loc::getMessage
(
'SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_AUDIENCE_ID'
),
49
'required'
=>
true
,
50
),
51
array(
52
'type'
=>
'string'
,
53
'code'
=>
'AUDIENCE_SIZE'
,
54
'name'
=>
Loc::getMessage
(
'SENDER_INTEGRATION_SEO_MESSAGE_CONFIG_AUDIENCE_SIZE'
),
55
'required'
=>
false
,
56
)
57
));
58
}
59
60
public
function
getLookalikeOptions
()
61
{
62
$config =
$this->configuration
;
63
return
[
64
'AUDIENCE_SIZE'
=> $config->get(
'AUDIENCE_SIZE'
),
65
];
66
}
67
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Sender\Integration\Seo\Ads\MessageBase\CODE_ADS_LOOKALIKE_VK
const CODE_ADS_LOOKALIKE_VK
Definition
messagebase.php:33
Bitrix\Sender\Integration\Seo\Ads\MessageBase\$configuration
$configuration
Definition
messagebase.php:37
Bitrix\Sender\Integration\Seo\Ads\MessageLookalike
Definition
messagelookalike.php:25
Bitrix\Sender\Integration\Seo\Ads\MessageLookalikeVk
Definition
messagelookalikevk.php:18
Bitrix\Sender\Integration\Seo\Ads\MessageLookalikeVk\CODE
const CODE
Definition
messagelookalikevk.php:19
Bitrix\Sender\Integration\Seo\Ads\MessageLookalikeVk\getLookalikeOptions
getLookalikeOptions()
Definition
messagelookalikevk.php:60
Bitrix\Sender\Integration\Seo\Ads\MessageLookalikeVk\setConfigurationOptions
setConfigurationOptions()
Definition
messagelookalikevk.php:30
Bitrix\Sender\Integration\Seo\Ads\MessageLookalikeVk\getName
getName()
Definition
messagelookalikevk.php:25
Bitrix\Sender\Integration\Seo\Ads
Definition
marketingservice.php:9
modules
sender
lib
integration
seo
ads
messagelookalikevk.php
Создано системой
1.10.0