• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/template/entity/elementsku.php
  • Класс: BitrixIblockTemplateEntityElementSku
  • Вызов: ElementSku::resolve
public function resolve($entity)
{
	if ($entity === "property")
	{
		if (!$this->property && $this->loadFromDatabase())
		{
			if ($this->skuIblockId && $this->skuList)
			{
				$this->property = new ElementSkuProperty($this->fields["ID"]);
				$this->property->setIblockId($this->skuIblockId);
			}
		}

		if ($this->property)
			return $this->property;
	}
	elseif ($entity === "price")
	{
		if (!$this->price && $this->loadFromDatabase())
		{
			if ($this->skuIblockId && $this->skuList)
			{
				$this->price = new ElementSkuPrice($this->fields["ID"]);
			}
		}

		if ($this->price)
			return $this->price;
	}
	return parent::resolve($entity);
}