17 $dropdownSectionItems = [];
21 $dropdownSectionItems[] = [
22 'NAME' =>
Loc::getMessage(
'IBLOCK_GRID_PANEL_UI_ACTIONS_ITEM_ELEMENT_GROUP_SECTION_TREE_TOP_LEVEL_NAME'),
27 if (!isset($this->sectionTree))
29 $this->sectionTree = [];
31 $rows = CIBlockSection::getTreeList(
33 [
'ID',
'NAME',
'DEPTH_LEVEL']
35 while ($row = $rows->Fetch())
37 $this->sectionTree[] = [
38 'NAME' => str_repeat(
' . ', $row[
'DEPTH_LEVEL']) . $row[
'NAME'],
39 'VALUE' => (int)$row[
'ID'],
44 array_push($dropdownSectionItems, ...$this->sectionTree);
47 'TYPE' => Types::DROPDOWN,
49 'NAME' =>
'section_id',
50 'ITEMS' => $dropdownSectionItems,
static getMessage($code, $replace=null, $language=null)