1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
ProviderFactory.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\UI\FeaturePromoter;
4
5
class
ProviderFactory
6
{
7
public
function
createProvider
(
ProviderConfiguration
$configuration):
FeaturePromoterProvider
8
{
9
if
($configuration->featureId)
10
{
11
$configuration->code = (
new
Code
($configuration->featureId))->
get
();
12
}
13
14
if
($configuration->type ===
ProviderType::POPUP
)
15
{
16
return
(
new
Popup
($configuration));
17
}
18
19
return
(
new
Slider
($configuration));
20
}
21
}
Bitrix\UI\FeaturePromoter\Code
Определения
Code.php:6
Bitrix\UI\FeaturePromoter\Popup
Определения
Popup.php:10
Bitrix\UI\FeaturePromoter\ProviderConfiguration
Определения
ProviderConfiguration.php:6
Bitrix\UI\FeaturePromoter\ProviderFactory
Определения
ProviderFactory.php:6
Bitrix\UI\FeaturePromoter\ProviderFactory\createProvider
createProvider(ProviderConfiguration $configuration)
Определения
ProviderFactory.php:7
Bitrix\UI\FeaturePromoter\ProviderType\POPUP
const POPUP
Определения
ProviderType.php:7
Bitrix\UI\FeaturePromoter\Slider
Определения
Slider.php:10
Bitrix\UI\FeaturePromoter\FeaturePromoterProvider
Определения
FeaturePromoterProvider.php:6
bitrix
modules
ui
lib
FeaturePromoter
ProviderFactory.php
Создано системой
1.14.0