Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
yandexaudiencestatusnormalizer.php
1
<?php
2
3
namespace
Bitrix\Seo\Retargeting\Audience\Status
;
4
5
use
Bitrix\Seo\Retargeting\Services\AudienceYandex
;
6
7
class
YandexAudienceStatusNormalizer
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
if
($this->
getNormalizedStatus
($originalStatus) === self::NORMALIZED_STATUS_READY)
23
{
24
return
true
;
25
}
26
27
return
$originalStatus ===
'few_data'
;
28
}
29
}
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\getNormalizedStatus
getNormalizedStatus(?string $originalStatus)
Definition
abstractaudiencestatusnormalizer.php:23
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\YandexAudienceStatusNormalizer
Definition
yandexaudiencestatusnormalizer.php:8
Bitrix\Seo\Retargeting\Audience\Status\YandexAudienceStatusNormalizer\$originalStatusToNormalizedMap
array $originalStatusToNormalizedMap
Definition
yandexaudiencestatusnormalizer.php:11
Bitrix\Seo\Retargeting\Audience\Status\YandexAudienceStatusNormalizer\AUDIENCE_TYPE_CODE
const AUDIENCE_TYPE_CODE
Definition
yandexaudiencestatusnormalizer.php:9
Bitrix\Seo\Retargeting\Audience\Status\YandexAudienceStatusNormalizer\isEnabled
isEnabled(?string $originalStatus)
Definition
yandexaudiencestatusnormalizer.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
yandexaudiencestatusnormalizer.php
Создано системой
1.10.0