Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
factory.php
1
<?php
2
3
namespace
Bitrix\Catalog\Component\Preset
;
4
5
class
Factory
6
{
11
static
public
function
create
($type)
12
{
13
if
($type ==
Enum::TYPE_CRM
)
14
{
15
return
new
Crm
();
16
}
17
elseif ($type ==
Enum::TYPE_MATERIAL
)
18
{
19
return
new
Material
();
20
}
21
elseif ($type ==
Enum::TYPE_MENU
)
22
{
23
return
new
Menu
();
24
}
25
elseif ($type ==
Enum::TYPE_STORE
)
26
{
27
return
new
Store
();
28
}
29
return
null
;
30
}
31
}
Bitrix\Catalog\Component\Preset\Crm
Definition
crm.php:9
Bitrix\Catalog\Component\Preset\Enum\TYPE_STORE
const TYPE_STORE
Definition
enum.php:9
Bitrix\Catalog\Component\Preset\Enum\TYPE_MATERIAL
const TYPE_MATERIAL
Definition
enum.php:10
Bitrix\Catalog\Component\Preset\Enum\TYPE_MENU
const TYPE_MENU
Definition
enum.php:8
Bitrix\Catalog\Component\Preset\Enum\TYPE_CRM
const TYPE_CRM
Definition
enum.php:7
Bitrix\Catalog\Component\Preset\Factory
Definition
factory.php:6
Bitrix\Catalog\Component\Preset\Factory\create
static create($type)
Definition
factory.php:11
Bitrix\Catalog\Component\Preset\Material
Definition
material.php:8
Bitrix\Catalog\Component\Preset\Menu
Definition
menu.php:9
Bitrix\Catalog\Component\Preset\Store
Definition
store.php:9
Bitrix\Catalog\Component\Preset
Definition
crm.php:4
modules
catalog
lib
component
preset
factory.php
Создано системой
1.10.0