• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/propertyindex/element.php
  • Класс: Bitrix\Iblock\PropertyIndex\Element
  • Вызов: Element::loadFromDatabase
public function loadFromDatabase()
{
	$this->elementPropertyValues = array();
	$this->loadElementProperties($this->iblockId, array(
		"IBLOCK_ID" => $this->iblockId,
		"=ID" => $this->elementId,
	));
	if ($this->skuIblockId > 0 && $this->skuPropertyId > 0)
	{
		$this->loadElementProperties($this->skuIblockId, array(
			"IBLOCK_ID" => $this->iblockId,
			"ACTIVE" => "Y",
			"=PROPERTY_".$this->skuPropertyId => $this->elementId,
		));
	}

	$this->elementPrices = array();
	if (self::$catalog)
	{
		$elements = $this->elementPropertyValues["IBLOCK_ELEMENT_ID"] ?? [$this->elementId];
		$this->loadElementPrices($elements);
	}

	$this->elementSections = array();
	$this->loadElementSections($this->elementId);
}