CIBlockSection - uniqcle/Bitrix GitHub Wiki
//Из массива разделов получаем символьный код производителя
function getSection( $paramSectionID ){
$result = CIBlockSection::GetList(
array("SORT" => "ASC"),
array("IBLOCK_ID" => 57, "ID" => $paramSectionID ),
false,
["ID", "NAME", "PICTURE", "DESCRIPTION", "DETAIL_PICTURE", "CODE"],
false
);
while($rsSection = $result->GetNext()){
$rsSection['FILE'] = CFile::GetFileArray($rsSection['PICTURE']);
$arSection[] = $rsSection;
}
return $arSection[0];
}
$arSection = getSection($paramSectionID);