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