@@ 258-270 (lines=13) @@ | ||
255 | * @param $element |
|
256 | * @return array |
|
257 | */ |
|
258 | protected static function getIBlockElementPanelButtons($element) |
|
259 | { |
|
260 | if (!isset(static::$panelButtons['iblock_element'][$element['ID']])) { |
|
261 | static::$panelButtons['iblock_element'][$element['ID']] = CIBlock::GetPanelButtons( |
|
262 | $element["IBLOCK_ID"], |
|
263 | $element['ID'], |
|
264 | 0, |
|
265 | ['SECTION_BUTTONS' => false, 'SESSID' => false] |
|
266 | ); |
|
267 | } |
|
268 | ||
269 | return static::$panelButtons['iblock_element'][$element['ID']]; |
|
270 | } |
|
271 | ||
272 | /** |
|
273 | * @param $section |
|
@@ 276-288 (lines=13) @@ | ||
273 | * @param $section |
|
274 | * @return array |
|
275 | */ |
|
276 | protected static function getIBlockSectionPanelButtons($section) |
|
277 | { |
|
278 | if (!isset(static::$panelButtons['iblock_section'][$section['ID']])) { |
|
279 | static::$panelButtons['iblock_section'][$section['ID']] = CIBlock::GetPanelButtons( |
|
280 | $section["IBLOCK_ID"], |
|
281 | 0, |
|
282 | $section['ID'], |
|
283 | ['SESSID' => false] |
|
284 | ); |
|
285 | } |
|
286 | ||
287 | return static::$panelButtons['iblock_section'][$section['ID']]; |
|
288 | } |
|
289 | ||
290 | /** |
|
291 | * @param int $id |