Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
yandexlookalikeaudiencestatusnormalizer.php
1
<?php
2
3
namespace
Bitrix\Seo\Retargeting\Audience\Status
;
4
5
use
Bitrix\Seo\Retargeting\Services\AudienceYandex
;
6
7
class
YandexLookalikeAudienceStatusNormalizer
extends
AbstractAudienceStatusNormalizer
8
{
9
protected
const
AUDIENCE_TYPE_CODE
= AudienceYandex::TYPE_CODE;
10
11
protected
array
$originalStatusToNormalizedMap
= [
12
'uploaded'
=>
self::NORMALIZED_STATUS_PROCESSING
,
13
'is_processed'
=>
self::NORMALIZED_STATUS_PROCESSING
,
14
'processed'
=>
self::NORMALIZED_STATUS_READY
,
15
'processing_failed'
=>
self::NORMALIZED_STATUS_OTHER
,
16
'is_updated'
=>
self::NORMALIZED_STATUS_PROCESSING
,
17
'few_data'
=>
self::NORMALIZED_STATUS_OTHER
,
18
];
19
20
public
function
isEnabled
(?
string
$originalStatus): bool
21
{
22
return
$originalStatus ===
'processed'
;
23
}
24
}
Bitrix\Seo\Retargeting\Audience\Status\AbstractAudienceStatusNormalizer
Definition
abstractaudiencestatusnormalizer.php:8
Bitrix\Seo\Retargeting\Audience\Status\AbstractAudienceStatusNormalizer\NORMALIZED_STATUS_OTHER
const NORMALIZED_STATUS_OTHER
Definition
abstractaudiencestatusnormalizer.php:13
Bitrix\Seo\Retargeting\Audience\Status\AbstractAudienceStatusNormalizer\NORMALIZED_STATUS_PROCESSING
const NORMALIZED_STATUS_PROCESSING
Definition
abstractaudiencestatusnormalizer.php:12
Bitrix\Seo\Retargeting\Audience\Status\AbstractAudienceStatusNormalizer\NORMALIZED_STATUS_READY
const NORMALIZED_STATUS_READY
Definition
abstractaudiencestatusnormalizer.php:11
Bitrix\Seo\Retargeting\Audience\Status\YandexLookalikeAudienceStatusNormalizer
Definition
yandexlookalikeaudiencestatusnormalizer.php:8
Bitrix\Seo\Retargeting\Audience\Status\YandexLookalikeAudienceStatusNormalizer\$originalStatusToNormalizedMap
array $originalStatusToNormalizedMap
Definition
yandexlookalikeaudiencestatusnormalizer.php:11
Bitrix\Seo\Retargeting\Audience\Status\YandexLookalikeAudienceStatusNormalizer\AUDIENCE_TYPE_CODE
const AUDIENCE_TYPE_CODE
Definition
yandexlookalikeaudiencestatusnormalizer.php:9
Bitrix\Seo\Retargeting\Audience\Status\YandexLookalikeAudienceStatusNormalizer\isEnabled
isEnabled(?string $originalStatus)
Definition
yandexlookalikeaudiencestatusnormalizer.php:20
Bitrix\Seo\Retargeting\Services\AudienceYandex
Definition
audienceyandex.php:13
Bitrix\Seo\Retargeting\Audience\Status
Definition
abstractaudiencestatusnormalizer.php:3
modules
seo
lib
retargeting
audience
status
yandexlookalikeaudiencestatusnormalizer.php
Создано системой
1.10.0