• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/classes/general/iblocksection.php
  • Класс: CAllIBlockSection
  • Вызов: CAllIBlockSection::getSectionCodePath
static function getSectionCodePath($sectionId)
{
	if (!isset(self::$arSectionPathCache[$sectionId]))
	{
		self::$arSectionPathCache[$sectionId] = "";
		$res = CIBlockSection::GetNavChain(0, $sectionId, array("ID", "CODE"), true);
		foreach ($res as $a)
		{
			self::$arSectionCodeCache[$a["ID"]] = rawurlencode($a["CODE"]);
			self::$arSectionPathCache[$sectionId] .= rawurlencode($a["CODE"])."/";
		}
		unset($a, $res);
		self::$arSectionPathCache[$sectionId] = rtrim(self::$arSectionPathCache[$sectionId], "/");
	}
	return self::$arSectionPathCache[$sectionId];
}