1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
PromotionServiceFactory.php
См. документацию.
1<?php
2
3declare(strict_types=1);
4
5namespace Bitrix\Im\V2\Promotion;
6
7use Bitrix\Im\V2\Integration\Socialnetwork\Collab\Onboarding\CollabOnboardingPromotionService;
8use Bitrix\Im\V2\Promotion\Service\PromotionServiceInterface;
9use Bitrix\Im\V2\Promotion\Service\UIPromotionService;
10
12{
14 public static function getServiceList(): array
15 {
16 return [
17 UIPromotionService::getInstance(),
18 CollabOnboardingPromotionService::getInstance(),
19 ];
20 }
21
22 public static function create(string $promotionId): PromotionServiceInterface
23 {
24 foreach (self::getServiceList() as $service)
25 {
26 if ($service->isCurrentTypePromotion($promotionId))
27 {
28 return $service;
29 }
30 }
31
32 return UIPromotionService::getInstance();
33 }
34}
static create(string $promotionId)
Определения PromotionServiceFactory.php:22
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$service
Определения payment.php:18