11 static public function create($type, $params=[])
15 return new \Bitrix\Sale\Helpers\Admin\Blocks\OrderFinanceInfo();
19 return new \Bitrix\Sale\Helpers\Admin\Blocks\OrderPayment();
35 return new \Bitrix\Sale\Exchange\Integration\Admin\Blocks\OrderInfo();
39 $shipment = $params[
'shipment'];
40 $jsObjName = isset($params[
'jsObjName'])?$params[
'jsObjName']:
'';
41 $idPrefix = isset($params[
'idPrefix'])?$params[
'idPrefix']:
'';
43 return new \Bitrix\Sale\Helpers\Admin\Blocks\OrderBasketShipment($shipment, $jsObjName, $idPrefix);
47 return new \Bitrix\Sale\Helpers\Admin\Blocks\OrderShipmentStatus();
51 return new \Bitrix\Sale\Helpers\Admin\Blocks\OrderShipment();
55 $order = $params[
'order'];
56 $jsObjName = isset($params[
'jsObjName']) ? $params[
'jsObjName']:
'';
57 $idPrefix = isset($params[
'idPrefix']) ? $params[
'idPrefix']:
'';
58 $createProductBasement = isset($params[
'createProductBasement']) ? $params[
'createProductBasement']:
true;
61 return new \Bitrix\Sale\Helpers\Admin\Blocks\OrderBasket($order, $jsObjName, $idPrefix, $createProductBasement, $mode);
65 return new \Bitrix\Sale\Helpers\Admin\Blocks\OrderMarker();
77 throw new \Bitrix\Main\NotSupportedException(
"Mode type: '".$type.
"' is not supported in current context");