Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
channel.php
1
<?php
2
3
namespace
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup
;
4
5
use
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields
;
6
7
final
class
Channel
implements
Fields\IField
8
{
9
const
CHANNEL_COMMERCE_OFFSITE
=
"COMMERCE_OFFSITE"
;
10
const
CHANNEL_MARKETPLACE
=
"MARKETPLACE"
;
11
const
CHANNEL_COMMERCE
=
"COMMERCE"
;
12
const
CHANNEL_SIGNALS
=
"SIGNALS"
;
13
const
CHANNEL_FEED
=
"FEED"
;
14
18
static
function
getDefaultValue
()
19
{
20
return
null
;
21
}
22
29
static
function
checkValue
($value): bool
30
{
31
return
is_string($value) && in_array($value,[
32
static::CHANNEL_COMMERCE,
33
static::CHANNEL_COMMERCE_OFFSITE,
34
static::CHANNEL_FEED,
35
static::CHANNEL_MARKETPLACE,
36
static::CHANNEL_SIGNALS
37
]);
38
39
}
40
44
static
function
available
(): bool
45
{
46
return
false
;
47
}
48
52
static
function
required
(): bool
53
{
54
return
false
;
55
}
56
}
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Channel
Definition
channel.php:8
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Channel\getDefaultValue
static getDefaultValue()
Definition
channel.php:18
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Channel\CHANNEL_COMMERCE_OFFSITE
const CHANNEL_COMMERCE_OFFSITE
Definition
channel.php:9
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Channel\checkValue
static checkValue($value)
Definition
channel.php:29
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Channel\CHANNEL_COMMERCE
const CHANNEL_COMMERCE
Definition
channel.php:11
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Channel\CHANNEL_FEED
const CHANNEL_FEED
Definition
channel.php:13
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Channel\CHANNEL_MARKETPLACE
const CHANNEL_MARKETPLACE
Definition
channel.php:10
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Channel\available
static available()
Definition
channel.php:44
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Channel\CHANNEL_SIGNALS
const CHANNEL_SIGNALS
Definition
channel.php:12
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\Channel\required
static required()
Definition
channel.php:52
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\IField
Definition
ifield.php:6
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup
Definition
businessid.php:3
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields
modules
seo
lib
businesssuite
configuration
facebook
fields
setup
channel.php
Создано системой
1.10.0