• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/template/entity/elementcatalog.php
  • Класс: BitrixIblockTemplateEntityElementCatalog
  • Вызов: ElementCatalog::resolve
public function resolve($entity)
{
	if ($entity === "price")
	{
		if (!$this->price && $this->loadFromDatabase())
		{
			$this->price = new ElementPrice($this->id);
		}

		if ($this->price)
			return $this->price;
	}
	elseif ($entity === "sku")
	{
		if (!$this->sku && $this->loadFromDatabase())
		{
			$this->sku = new ElementSku($this->id);
		}

		if ($this->sku)
			return $this->sku;
	}
	elseif ($entity === "store")
	{
		if (!$this->store)
		{
			$this->store = new CatalogStore(0);
		}

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