| @@ 269-281 (lines=13) @@ | ||
| 266 | * @param $element |
|
| 267 | * @return array |
|
| 268 | */ |
|
| 269 | protected static function getIBlockElementPanelButtons($element) |
|
| 270 | { |
|
| 271 | if (!isset(static::$panelButtons['iblock_element'][$element['ID']])) { |
|
| 272 | static::$panelButtons['iblock_element'][$element['ID']] = CIBlock::GetPanelButtons( |
|
| 273 | $element["IBLOCK_ID"], |
|
| 274 | $element['ID'], |
|
| 275 | 0, |
|
| 276 | ['SECTION_BUTTONS' => false, 'SESSID' => false] |
|
| 277 | ); |
|
| 278 | } |
|
| 279 | ||
| 280 | return static::$panelButtons['iblock_element'][$element['ID']]; |
|
| 281 | } |
|
| 282 | ||
| 283 | /** |
|
| 284 | * @param $section |
|
| @@ 287-299 (lines=13) @@ | ||
| 284 | * @param $section |
|
| 285 | * @return array |
|
| 286 | */ |
|
| 287 | protected static function getIBlockSectionPanelButtons($section) |
|
| 288 | { |
|
| 289 | if (!isset(static::$panelButtons['iblock_section'][$section['ID']])) { |
|
| 290 | static::$panelButtons['iblock_section'][$section['ID']] = CIBlock::GetPanelButtons( |
|
| 291 | $section["IBLOCK_ID"], |
|
| 292 | 0, |
|
| 293 | $section['ID'], |
|
| 294 | ['SESSID' => false] |
|
| 295 | ); |
|
| 296 | } |
|
| 297 | ||
| 298 | return static::$panelButtons['iblock_section'][$section['ID']]; |
|
| 299 | } |
|
| 300 | ||
| 301 | /** |
|
| 302 | * @param int $id |
|