Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
byconcreteproduct.php
1<?php
2
4
10
17{
21 protected static function getJsHandler(): string
22 {
23 return "BX.Sale.Delivery";
24 }
25
30 public static function getClassDescription(): string
31 {
32 return Loc::getMessage('SALE_DLVR_RSTR_BY_CONCRETE_PRODUCT_DESC');
33 }
34
39 protected static function getBasketItems(Entity $entity): array
40 {
41 if (!$entity instanceof Shipment)
42 {
43 return [];
44 }
45
46 $basketItems = [];
47
49 foreach ($entity->getShipmentItemCollection()->getSellableItems() as $shipmentItem)
50 {
51 $basketItems[] = $shipmentItem->getBasketItem();
52 }
53
54 return $basketItems;
55 }
56}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29