Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
productcolumnsfactory.php
1<?php
2
4
17
18Loader::requireModule('iblock');
19
21{
22 public function create(ProductSettings $settings): ProductColumns
23 {
24 $providers = [
25 // iblock
26 new ElementProvider($settings),
27 new ElementPropertyProvider($settings),
28 new WorkflowProvider($settings),
29 new BusinessProcessProvider($settings),
30
31 // catalog
32 new ProductProvider($settings),
33 new PriceProvider($settings),
34 new MeasureRatioProvider($settings),
35 ];
36
37 if (!State::isUsedInventoryManagement())
38 {
39 $providers[] = new BarcodeProvider($settings);
40 }
41
42 return new ProductColumns(...$providers);
43 }
44}