Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
catalogviewmanager.php
1
<?php
2
3
4
namespace
Bitrix\Catalog\RestView
;
5
6
use
Bitrix\Main\Engine
;
7
use
Bitrix\Rest\Integration\View\Base
;
8
use
Bitrix\Rest\RestException
;
9
use
Bitrix\Catalog\Controller
;
10
use
Bitrix\Catalog\RestView
;
11
use
Bitrix\Rest\Integration\ViewManager
;
12
13
final
class
CatalogViewManager
extends
ViewManager
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
{
114
return
new
RestView\ProductPropertyFeature
();
115
}
116
117
if
($controller instanceof
Controller
\
ProductPropertySection
)
118
{
119
return
new
RestView\ProductPropertySection
();
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
}
Bitrix\Catalog\Controller\Catalog
Definition
catalog.php:13
Bitrix\Catalog\Controller\DocumentContractor
Definition
documentcontractor.php:16
Bitrix\Catalog\Controller\Document
Definition
document.php:20
Bitrix\Catalog\Controller\Enum
Definition
enum.php:11
Bitrix\Catalog\Controller\Extra
Definition
extra.php:15
Bitrix\Catalog\Controller\Measure
Definition
measure.php:17
Bitrix\Catalog\Controller\Price
Definition
price.php:19
Bitrix\Catalog\Controller\PriceTypeGroup
Definition
pricetypegroup.php:13
Bitrix\Catalog\Controller\PriceType
Definition
pricetype.php:16
Bitrix\Catalog\Controller\PriceTypeLang
Definition
pricetypelang.php:13
Bitrix\Catalog\Controller\Product
Definition
product.php:21
Bitrix\Catalog\Controller\ProductImage
Definition
productimage.php:20
Bitrix\Catalog\Controller\ProductPropertyEnum
Definition
productpropertyenum.php:14
Bitrix\Catalog\Controller\ProductPropertyFeature
Definition
productpropertyfeature.php:14
Bitrix\Catalog\Controller\ProductProperty
Definition
productproperty.php:13
Bitrix\Catalog\Controller\ProductPropertySection
Definition
productpropertysection.php:15
Bitrix\Catalog\Controller\Ratio
Definition
ratio.php:15
Bitrix\Catalog\Controller\RoundingRule
Definition
roundingrule.php:15
Bitrix\Catalog\Controller\Section
Definition
section.php:14
Bitrix\Catalog\Controller\Store
Definition
store.php:15
Bitrix\Catalog\Controller\StoreProduct
Definition
storeproduct.php:13
Bitrix\Catalog\Controller\Vat
Definition
vat.php:19
Bitrix\Catalog\RestView\CatalogViewManager
Definition
catalogviewmanager.php:14
Bitrix\Catalog\RestView\CatalogViewManager\getView
getView(Engine\Controller $controller)
Definition
catalogviewmanager.php:20
Bitrix\Catalog\RestView\DocumentElement
Definition
documentelement.php:10
Bitrix\Catalog\RestView\DocumentUserField
Definition
documentuserfield.php:12
Bitrix\Rest\Integration\View\Base
Definition
base.php:16
Bitrix\Rest\Integration\ViewManager
Definition
viewmanager.php:11
Bitrix\Rest\OAuth\Engine
Definition
engine.php:16
Bitrix\Rest\RestException
Definition
restexception.php:6
Bitrix\Catalog\Controller
Bitrix\Catalog\RestView
Definition
catalog.php:4
Bitrix\Main\Engine
Definition
action.php:3
Bitrix\Sender\Internals\QueryController
Definition
action.php:8
modules
catalog
lib
restview
catalogviewmanager.php
Создано системой
1.10.0