@@ 131-143 (lines=13) @@ | ||
128 | * @param $element |
|
129 | * @return array |
|
130 | */ |
|
131 | protected static function getIBlockElementPanelButtons($element) |
|
132 | { |
|
133 | if (!isset(static::$panelButtons['iblock_element'][$element['ID']])) { |
|
134 | static::$panelButtons['iblock_element'][$element['ID']] = CIBlock::GetPanelButtons( |
|
135 | $element["IBLOCK_ID"], |
|
136 | $element['ID'], |
|
137 | 0, |
|
138 | [] |
|
139 | ); |
|
140 | } |
|
141 | ||
142 | return static::$panelButtons['iblock_element'][$element['ID']]; |
|
143 | } |
|
144 | ||
145 | /** |
|
146 | * @param $section |
|
@@ 149-161 (lines=13) @@ | ||
146 | * @param $section |
|
147 | * @return array |
|
148 | */ |
|
149 | protected static function getIBlockSectionPanelButtons($section) |
|
150 | { |
|
151 | if (!isset(static::$panelButtons['iblock_section'][$section['ID']])) { |
|
152 | static::$panelButtons['iblock_section'][$section['ID']] = CIBlock::GetPanelButtons( |
|
153 | $section["IBLOCK_ID"], |
|
154 | 0, |
|
155 | $section['ID'], |
|
156 | [] |
|
157 | ); |
|
158 | } |
|
159 | ||
160 | return static::$panelButtons['iblock_section'][$section['ID']]; |
|
161 | } |
|
162 | } |
|
163 |