• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/userfield/types/sectiontype.php
  • Класс: BitrixMainUserFieldTypesSectionType
  • Вызов: SectionType::getList
static function getList(array $userField)
{
	if(self::$iblockIncluded === null)
	{
		self::$iblockIncluded = Loader::includeModule('iblock');
	}

	$elementEnumList = false;

	if(self::$iblockIncluded && (int)$userField['SETTINGS']['IBLOCK_ID'])
	{
		$sectionEnum = new SectionEnum();
		$section = $sectionEnum::getTreeList(
			$userField['SETTINGS']['IBLOCK_ID'],
			$userField['SETTINGS']['ACTIVE_FILTER']
		);
	}
	return $section;
}