• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/propertyvaluecollectionbase.php
  • Класс: BitrixSalePropertyValueCollectionBase
  • Вызов: PropertyValueCollectionBase::load
static function load(OrderBase $order)
{
	/** @var PropertyValueCollectionBase $propertyCollection */
	$propertyCollection = static::createPropertyValueCollectionObject();
	$propertyCollection->setOrder($order);

	$registry = Registry::getInstance(static::getRegistryType());
	/** @var EntityPropertyValue $propertyValueClassName */
	$propertyValueClassName = $registry->getPropertyValueClassName();

	$props = $propertyValueClassName::loadForOrder($order);

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

	return $propertyCollection;
}