1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
menuaction.php
См. документацию.
1<?php
2
3namespace Bitrix\Main\Grid\Row\Action;
4
5use Bitrix\Main\HttpRequest;
6use Bitrix\Main\Result;
7
13abstract class MenuAction implements Action
14{
20 protected ?string $className;
26 protected ?string $title;
27
31 final public static function getId(): ?string
32 {
33 return null;
34 }
35
39 final public function processRequest(HttpRequest $request): ?Result
40 {
41 return null;
42 }
43
49 abstract protected function getText(): string;
50
54 abstract protected function getMenu(): array;
55
59 public function getControl(array $rawFields): array
60 {
61 $result = [
62 'TEXT' => $this->getText(),
63 'MENU' => [],
64 ];
65
66 if (isset($this->className))
67 {
68 $result['ICONCLASS'] = $this->className;
69 }
70
71 if (isset($this->title))
72 {
73 $result['TITLE'] = $this->title;
74 }
75
76 foreach ($this->getMenu() as $subAction)
77 {
78 if ($subAction instanceof Action)
79 {
80 $control = $subAction->getControl($rawFields);
81 if (isset($control))
82 {
83 $result['MENU'][] = $control;
84 }
85 }
86 }
87
88 return $result;
89 }
90}
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения catalog_reindex.php:36
getControl(array $rawFields)
Определения menuaction.php:59
processRequest(HttpRequest $request)
Определения menuaction.php:39
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$result
Определения get_property_values.php:14
$control
Определения iblock_catalog_edit.php:61
<? endif;?> window document title
Определения prolog_main_admin.php:76