• Модуль: lists
  • Путь к файлу: ~/bitrix/modules/lists/classes/general/lists.php
  • Класс: CLists
  • Вызов: CLists::getChildSection
static function getChildSection($baseSectionId, array $listSection, array &$listChildSection)
{
	$baseSectionId = intval($baseSectionId);
	if (!$baseSectionId)
		return;
	if(!in_array($baseSectionId, $listChildSection))
		$listChildSection[] = $baseSectionId;

	foreach($listSection as $sectionId => $section)
	{
		if($section['PARENT_ID'] == $baseSectionId)
		{
			$listChildSection[] = $sectionId;
			self::getChildSection($sectionId, $listSection, $listChildSection);
		}
	}
}