1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
Categories.php
См. документацию.
1
<?php
2
declare(strict_types=1);
3
4
namespace
Bitrix\Landing\Metrika
;
5
6
use
Bitrix\Landing\Site\Type
;
7
8
enum
Categories
:
string
9
{
10
case
Site
=
'site'
;
11
case
Shop =
'shop'
;
12
case
Knowledge
=
'kb'
;
13
case
Vibe
=
'vibe'
;
14
case
CrmForms =
'crm_forms'
;
15
case
ExternalPictureEditor =
'external_picture_editor'
;
16
case
SiteGeneration =
'site_generation'
;
17
18
public
static
function
getBySiteType
(
string
$siteType):
Categories
19
{
20
return
match ($siteType)
21
{
22
'STORE'
=> self::Shop,
23
Type::SCOPE_CODE_KNOWLEDGE, Type::SCOPE_CODE_GROUP => self::Knowledge,
24
Type::SCOPE_CODE_MAINPAGE => self::Vibe,
25
default
=> self::Site,
26
};
27
}
28
}
Bitrix\Landing\Controller\Vibe
Определения
vibe.php:14
Bitrix\Landing\Restriction\Knowledge
Определения
knowledge.php:9
Bitrix\Landing\Site\Type
Определения
type.php:10
Bitrix\Landing\Metrika
Определения
Categories.php:4
Bitrix\Landing\Metrika\Categories
Categories
Определения
Categories.php:9
Bitrix\Landing\Metrika\getBySiteType
@ getBySiteType
Определения
Categories.php:18
Bitrix\Landing\Site
Определения
cookies.php:2
bitrix
modules
landing
lib
Metrika
Categories.php
Создано системой
1.14.0