CCrmProductSection::GetPath

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmProductSection
  4. GetPath
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_product_section.php
  • Класс: \CCrmProductSection
  • Вызов: CCrmProductSection::GetPath
static function GetPath($catalogId, $sectionId, $select)
{
	$result = [];

	if (!Bitrix\Main\Loader::includeModule('iblock'))
	{
		return $result;
	}

	if ($catalogId <= 0)
	{
		$catalogId = CCrmCatalog::GetDefaultID();
	}

	if ($catalogId > 0)
	{
		$sectionId = (int)$sectionId;
		if (!is_array($select))
		{
			$select = [];
		}
		$result = CIBlockSection::GetNavChain($catalogId, $sectionId, $select, true);
	}

	return $result;
}

Добавить комментарий