Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
businesstype.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
BusinessType
implements
Fields\IField
8
{
9
10
const
BUSINESS_VERTICAL_ECOMMERCE
=
"ECOMMERCE"
;
11
const
BUSINESS_VERTICAL_SERVICES
=
"SERVICES"
;
12
17
static
function
getDefaultValue
()
18
{
19
return
static::BUSINESS_VERTICAL_ECOMMERCE;
20
21
}
22
27
protected
static
function
getAvailableValues
(): array
28
{
29
return
[static::BUSINESS_VERTICAL_ECOMMERCE, static::BUSINESS_VERTICAL_SERVICES];
30
}
31
38
static
function
checkValue
($value): bool
39
{
40
return
isset($value) && in_array($value,static::getAvailableValues());
41
}
42
46
static
function
available
(): bool
47
{
48
return
true
;
49
}
50
54
static
function
required
(): bool
55
{
56
return
true
;
57
}
58
}
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\BusinessType
Definition
businesstype.php:8
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\BusinessType\getDefaultValue
static getDefaultValue()
Definition
businesstype.php:17
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\BusinessType\BUSINESS_VERTICAL_ECOMMERCE
const BUSINESS_VERTICAL_ECOMMERCE
Definition
businesstype.php:10
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\BusinessType\checkValue
static checkValue($value)
Definition
businesstype.php:38
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\BusinessType\getAvailableValues
static getAvailableValues()
Definition
businesstype.php:27
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\BusinessType\BUSINESS_VERTICAL_SERVICES
const BUSINESS_VERTICAL_SERVICES
Definition
businesstype.php:11
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\BusinessType\available
static available()
Definition
businesstype.php:46
Bitrix\Seo\BusinessSuite\Configuration\Facebook\Fields\Setup\BusinessType\required
static required()
Definition
businesstype.php:54
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
businesstype.php
Создано системой
1.10.0