1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
factory.php
См. документацию.
1
<?php
2
3
4
namespace
Bitrix\Sale\Exchange\Integration\CRM\Placement;
5
6
7
class
Factory
8
{
9
static
public
function
create
(
$type
,
$fields
)
10
{
11
if
(
$type
== Type::DEAL_DETAIL_TOOLBAR)
12
{
13
return
new
PlacementDeal
(
$fields
);
14
}
15
elseif
(
$type
== Type::DEFAULT_TOOLBAR)
16
{
17
return
new
PlacementDefault
(
$fields
);
18
}
19
else
20
{
21
throw
new \Bitrix\Main\NotSupportedException(
"AppPlacementType: '"
.
$type
.
"' is not supported in current context"
);
22
}
23
}
24
}
$type
$type
Определения
options.php:106
Bitrix\Sale\Exchange\Integration\CRM\Placement\Factory
Определения
factory.php:8
Bitrix\Sale\Exchange\Integration\CRM\Placement\Factory\create
static create($type, $fields)
Определения
factory.php:9
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDeal
Определения
placementdeal.php:10
Bitrix\Sale\Exchange\Integration\CRM\Placement\PlacementDefault
Определения
placementdefault.php:10
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
$fields
$fields
Определения
yandex_run.php:501
bitrix
modules
sale
lib
exchange
integration
crm
placement
factory.php
Создано системой
1.14.0