| @@ 229-241 (lines=13) @@ | ||
| 226 | * @param $element |
|
| 227 | * @return array |
|
| 228 | */ |
|
| 229 | protected static function getIBlockElementPanelButtons($element) |
|
| 230 | { |
|
| 231 | if (!isset(static::$panelButtons['iblock_element'][$element['ID']])) { |
|
| 232 | static::$panelButtons['iblock_element'][$element['ID']] = CIBlock::GetPanelButtons( |
|
| 233 | $element["IBLOCK_ID"], |
|
| 234 | $element['ID'], |
|
| 235 | 0, |
|
| 236 | ['SECTION_BUTTONS' => false, 'SESSID' => false] |
|
| 237 | ); |
|
| 238 | } |
|
| 239 | ||
| 240 | return static::$panelButtons['iblock_element'][$element['ID']]; |
|
| 241 | } |
|
| 242 | ||
| 243 | /** |
|
| 244 | * @param $section |
|
| @@ 247-259 (lines=13) @@ | ||
| 244 | * @param $section |
|
| 245 | * @return array |
|
| 246 | */ |
|
| 247 | protected static function getIBlockSectionPanelButtons($section) |
|
| 248 | { |
|
| 249 | if (!isset(static::$panelButtons['iblock_section'][$section['ID']])) { |
|
| 250 | static::$panelButtons['iblock_section'][$section['ID']] = CIBlock::GetPanelButtons( |
|
| 251 | $section["IBLOCK_ID"], |
|
| 252 | 0, |
|
| 253 | $section['ID'], |
|
| 254 | ['SESSID' => false] |
|
| 255 | ); |
|
| 256 | } |
|
| 257 | ||
| 258 | return static::$panelButtons['iblock_section'][$section['ID']]; |
|
| 259 | } |
|
| 260 | ||
| 261 | /** |
|
| 262 | * @param int $id |
|