Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
factorymode.php
1<?php
2
3
5
6
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}