• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/basketitembase.php
  • Класс: BitrixSaleBasketItemBase
  • Вызов: BasketItemBase::getPropertyCollection
public function getPropertyCollection()
{
	if ($this->propertyCollection === null)
	{
		$registry = Registry::getInstance(static::getRegistryType());

		/** @var BasketPropertiesCollectionBase $basketPropertyCollectionClassName */
		$basketPropertyCollectionClassName = $registry->getBasketPropertiesCollectionClassName();

		if ($this->getId() > 0)
		{
			/** @var BasketItemCollection $collection */
			$collection = $this->getCollection();
			$basketPropertyCollectionClassName::loadByCollection($collection);
		}

		if ($this->propertyCollection === null)
		{
			$this->propertyCollection = $basketPropertyCollectionClassName::load($this);
		}
	}

	return $this->propertyCollection;
}