20 return 'OnSaleShipmentPropertyValueDeleted';
29 return 'OnBeforeSaleShipmentPropertyValueDeleted';
38 return $registry->getShipmentPropertyClassName();
54 return \Bitrix\Sale\Registry::ENTITY_SHIPMENT;
64 return $registry->getShipmentPropertyValueClassName();
74 $propertyCollection = static::createPropertyValueCollectionObject();
75 $propertyCollection->setShipment(
$shipment);
78 $propertyValueClassName = static::getPropertyValueClassName();
80 $props = $propertyValueClassName::loadForEntity(
$shipment);
83 foreach ($props as $prop)
85 $prop->setCollection($propertyCollection);
86 $propertyCollection->addItem($prop);
89 return $propertyCollection;
97 return $this->shipment->getOrder();
100 private static function createPropertyValueCollectionObject()
103 $propertyValueCollectionClassName = $registry->getShipmentPropertyValueCollectionClassName();
104 return new $propertyValueCollectionClassName();