Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
catalogviewmanager.php
1<?php
2
3
5
12
14{
20 public function getView(Engine\Controller $controller)
21 {
22 if ($controller instanceof Controller\PriceType)
23 {
24 return new RestView\PriceType();
25 }
26
27 if ($controller instanceof Controller\PriceTypeLang)
28 {
29 return new RestView\PriceTypeLang();
30 }
31
32 if ($controller instanceof Controller\PriceTypeGroup)
33 {
34 return new RestView\PriceTypeGroup();
35 }
36
37 if ($controller instanceof Controller\RoundingRule)
38 {
39 return new RestView\RoundingRule();
40 }
41
42 if ($controller instanceof Controller\Enum)
43 {
44 return new RestView\Enum();
45 }
46
47 if ($controller instanceof Controller\Extra)
48 {
49 return new RestView\Extra();
50 }
51
52 if ($controller instanceof Controller\Measure)
53 {
54 return new RestView\Measure();
55 }
56
57 if ($controller instanceof Controller\Ratio)
58 {
59 return new RestView\Ratio();
60 }
61
62 if ($controller instanceof Controller\Vat)
63 {
64 return new RestView\Vat();
65 }
66
67 if ($controller instanceof Controller\Store)
68 {
69 return new RestView\Store();
70 }
71
72 if ($controller instanceof Controller\StoreProduct)
73 {
74 return new RestView\StoreProduct();
75 }
76
77 if ($controller instanceof Controller\Product)
78 {
79 return new RestView\Product();
80 }
81
82 if ($controller instanceof Controller\Catalog)
83 {
84 return new RestView\Catalog();
85 }
86
87 if ($controller instanceof Controller\Section)
88 {
89 return new RestView\Section();
90 }
91
92 if ($controller instanceof Controller\Price)
93 {
94 return new RestView\Price();
95 }
96
97 if ($controller instanceof Controller\ProductImage)
98 {
99 return new RestView\ProductImage();
100 }
101
102 if ($controller instanceof Controller\ProductProperty)
103 {
104 return new RestView\ProductProperty();
105 }
106
107 if ($controller instanceof Controller\ProductPropertyEnum)
108 {
109 return new RestView\ProductPropertyEnum();
110 }
111
112 if ($controller instanceof Controller\ProductPropertyFeature)
113 {
115 }
116
117 if ($controller instanceof Controller\ProductPropertySection)
118 {
120 }
121
122 if ($controller instanceof Controller\Document)
123 {
124 return new RestView\Document();
125 }
126
127 if ($controller instanceof Controller\Document\Element)
128 {
129 return new RestView\DocumentElement();
130 }
131
132 if ($controller instanceof Controller\DocumentContractor)
133 {
134 return new RestView\DocumentContractor();
135 }
136
137 if ($controller instanceof Controller\Userfield\Document)
138 {
139 return new RestView\DocumentUserField();
140 }
141
142 throw new RestException('Unknown object ' . get_class($controller));
143 }
144}