Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
factorymode.php
1
<?php
2
3
4
namespace
Bitrix\Sale\Helpers\Admin\Blocks
;
5
6
7
class
FactoryMode
8
{
14
static
public
function
create
($type)
15
{
16
if
($type ==
ModeType::DEFAULT_TYPE
)
17
{
18
return
new
Factory
();
19
}
20
elseif ($type ==
ModeType::APP_LAYOUT_TYPE
)
21
{
22
return
new \Bitrix\Sale\Exchange\Integration\Admin\Blocks\Factory();
23
}
24
else
25
{
26
throw
new \Bitrix\Main\NotSupportedException(
"Mode type: '"
.$type.
"' is not supported in current context"
);
27
}
28
}
29
}
Bitrix\Sale\Helpers\Admin\Blocks\Factory
Definition
factory.php:8
Bitrix\Sale\Helpers\Admin\Blocks\FactoryMode
Definition
factorymode.php:8
Bitrix\Sale\Helpers\Admin\Blocks\FactoryMode\create
static create($type)
Definition
factorymode.php:14
Bitrix\Sale\Helpers\Admin\Blocks\ModeType\APP_LAYOUT_TYPE
const APP_LAYOUT_TYPE
Definition
modetype.php:10
Bitrix\Sale\Helpers\Admin\Blocks\ModeType\DEFAULT_TYPE
const DEFAULT_TYPE
Definition
modetype.php:9
Bitrix\Sale\Helpers\Admin\Blocks
modules
sale
lib
helpers
admin
blocks
factorymode.php
Создано системой
1.10.0