• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/shipmentpropertyvaluecollection.php
  • Класс: BitrixSaleShipmentPropertyValueCollection
  • Вызов: ShipmentPropertyValueCollection::load
static function load(Shipment $shipment): ShipmentPropertyValueCollection
{
	$propertyCollection = static::createPropertyValueCollectionObject();
	$propertyCollection->setShipment($shipment);

	/** @var ShipmentPropertyValue $propertyValueClassName */
	$propertyValueClassName = static::getPropertyValueClassName();

	$props = $propertyValueClassName::loadForEntity($shipment);

	/** @var ShipmentPropertyValue $prop */
	foreach ($props as $prop)
	{
		$prop->setCollection($propertyCollection);
		$propertyCollection->addItem($prop);
	}

	return $propertyCollection;
}