Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
byproductcategory.php
1<?php
3
8
9Loc::loadMessages(__FILE__);
10
17{
18 public static $easeSort = 400;
19
23 protected static function getJsHandler(): string
24 {
25 return 'BX.Sale.Delivery';
26 }
27
32 public static function getClassDescription() : string
33 {
34 return Loc::getMessage("SALE_DLVR_RSTR_BY_PC_DESCRIPT");
35 }
36
41 protected static function getBasketItems(Entity $entity): array
42 {
43 if (!$entity instanceof Shipment)
44 {
45 return [];
46 }
47
48 $basketItems = [];
49
51 foreach ($entity->getShipmentItemCollection()->getSellableItems() as $shipmentItem)
52 {
53 $basketItems[] = $shipmentItem->getBasketItem();
54 }
55
56 return $basketItems;
57 }
58}
static loadMessages($file)
Definition loc.php:64
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29