1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
byconcreteproduct.php
См. документацию.
1<?php
2
3namespace Bitrix\Sale\Delivery\Restrictions;
4
5use Bitrix\Main\Localization\Loc;
6use Bitrix\Sale\Internals\Entity;
7use Bitrix\Sale\Shipment;
8use Bitrix\Sale\Services\Base\ConcreteProductRestriction;
9use Bitrix\Sale\ShipmentItem;
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}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$entity
Определения ufield.php:9