• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/inheritedproperty/sectionvalues.php
  • Класс: BitrixIblockInheritedPropertySectionValues
  • Вызов: SectionValues::getParents
public function getParents()
{
	$parents = array();
	$sectionList = BitrixIblockSectionTable::getList(array(
		"select" => array("IBLOCK_SECTION_ID"),
		"filter" => array("=ID" => $this->sectionId),
	));
	$section = $sectionList->fetch();
	if ($section && $section["IBLOCK_SECTION_ID"] > 0)
		$parents[] = new SectionValues($this->iblockId, $section["IBLOCK_SECTION_ID"]);
	else
		$parents[] = new IblockValues($this->iblockId);
	return $parents;
}