37 if($controller instanceof Integration\
Controller\StatisticProvider)
39 $entity =
new Integration\RestView\StatisticProvider();
41 elseif($controller instanceof Integration\
Controller\Statistic)
43 $entity =
new Integration\RestView\Statistic();
45 elseif($controller instanceof
Profile)
47 $entity = new \Bitrix\Sale\Rest\View\Profile();
51 $entity = new \Bitrix\Sale\Rest\View\ProfileValue();
55 $entity = new \Bitrix\Sale\Rest\View\PersonType();
59 $entity = new \Bitrix\Sale\Rest\View\PropertyGroup();
63 $entity = new \Bitrix\Sale\Rest\View\PropertyRelation();
67 $entity = new \Bitrix\Sale\Rest\View\PropertyValue();
69 elseif ($controller instanceof
Enum)
71 $entity = new \Bitrix\Sale\Rest\View\Enum();
75 $entity = new \Bitrix\Sale\Rest\View\DeliveryServices();
79 $entity = new \Bitrix\Sale\Rest\View\PropertyVariant();
81 elseif ($controller instanceof
Status)
83 $entity = new \Bitrix\Sale\Rest\View\Status();
87 $entity = new \Bitrix\Sale\Rest\View\StatusLang();
91 $entity = new \Bitrix\Sale\Rest\View\TradeBinding();
95 $entity = new \Bitrix\Sale\Rest\View\TradePlatform();
99 $entity = new \Bitrix\Sale\Rest\View\BusinessValuePersonDomain();
103 $entity = new \Bitrix\Sale\Rest\View\PaymentItemBasket();
107 $entity = new \Bitrix\Sale\Rest\View\PaymentItemShipment();
111 throw new RestException(
'Unknown object ' . get_class($controller));