38 if($controller instanceof Integration\
Controller\StatisticProvider)
40 $entity =
new Integration\RestView\StatisticProvider();
42 elseif($controller instanceof Integration\
Controller\Statistic)
44 $entity =
new Integration\RestView\Statistic();
46 elseif($controller instanceof
Profile)
48 $entity = new \Bitrix\Sale\Rest\View\Profile();
52 $entity = new \Bitrix\Sale\Rest\View\ProfileValue();
56 $entity = new \Bitrix\Sale\Rest\View\PersonType();
60 $entity = new \Bitrix\Sale\Rest\View\PropertyGroup();
64 $entity = new \Bitrix\Sale\Rest\View\PropertyRelation();
68 $entity = new \Bitrix\Sale\Rest\View\PropertyValue();
70 elseif ($controller instanceof
Enum)
72 $entity = new \Bitrix\Sale\Rest\View\Enum();
76 $entity = new \Bitrix\Sale\Rest\View\DeliveryServices();
80 $entity = new \Bitrix\Sale\Rest\View\PropertyVariant();
82 elseif ($controller instanceof
Status)
84 $entity = new \Bitrix\Sale\Rest\View\Status();
88 $entity = new \Bitrix\Sale\Rest\View\StatusLang();
92 $entity = new \Bitrix\Sale\Rest\View\TradeBinding();
96 $entity = new \Bitrix\Sale\Rest\View\TradePlatform();
100 $entity = new \Bitrix\Sale\Rest\View\BusinessValuePersonDomain();
104 $entity = new \Bitrix\Sale\Rest\View\PaymentItemBasket();
108 $entity = new \Bitrix\Sale\Rest\View\PaymentItemShipment();
112 throw new RestException(
'Unknown object ' . get_class($controller));