• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/template/entity/elementproperty.php
  • Класс: BitrixIblockTemplateEntityElementProperty
  • Вызов: ElementProperty::resolve
public function resolve($entity)
{
	if ($this->loadFromDatabase())
	{
		if (isset($this->elementLinkProperties[$entity]))
		{
			if (!is_object($this->elementLinkProperties[$entity]))
				$this->elementLinkProperties[$entity] = new Element($this->elementLinkProperties[$entity]);
			return $this->elementLinkProperties[$entity];
		}
		elseif (isset($this->sectionLinkProperties[$entity]))
		{
			if (!is_object($this->sectionLinkProperties[$entity]))
				$this->sectionLinkProperties[$entity] = new Element($this->sectionLinkProperties[$entity]);
			return $this->sectionLinkProperties[$entity];
		}
	}
	return parent::resolve($entity);
}