• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/vk/sectionslist.php
  • Класс: BitrixSaleTradingPlatformVkSectionsList
  • Вызов: SectionsList::getSectionsToProductExport
public function getSectionsToProductExport()
{
	$sectionsToExport = array();
	foreach ($this->mappedSections as $mappedSection)
	{
		$params = $mappedSection["PARAMS"];
		$parentParams = $params["PARENT_SETTINGS"];

//			put current section to export, if them enabled and not inherit, or if parent section enabled
		if (
			(!$params["INHERIT"] && $params['ENABLE']) ||
			($params["INHERIT"] && $parentParams && $parentParams["ENABLE"])
		)
		{
			$sectionsToExport[$params["IBLOCK"]][$mappedSection["BX_ID"]] = $mappedSection["BX_ID"];
		}
	}

	return $sectionsToExport;
}