Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
deactivategroupchild.php
1<?php
2
4
6use Bitrix\Iblock\Grid\Panel\UI\Actions\Helpers\ChangeActiveHandler;
14
19{
20 use ChangeActiveHandler;
21
22 public static function getId(): string
23 {
25 }
26
27 public function getName(): string
28 {
29 return Loc::getMessage('IBLOCK_GRID_PANEL_UI_ACTIONS_ELEMENT_GROUP_DEACTIVATE_NAME');
30 }
31
32 public function processRequest(HttpRequest $request, bool $isSelectedAllRows, ?Filter $filter = null): ?Result
33 {
34 return $this->processSetActive($request, $isSelectedAllRows, $filter, false);
35 }
36
37 protected function getOnchange(): Onchange
38 {
39 return new Onchange([
40 [
41 'ACTION' => Actions::RESET_CONTROLS,
42 ],
43 [
44 'ACTION' => Actions::CREATE,
45 'DATA' => [
46 (new Snippet)->getSendSelectedButton(),
47 ],
48 ],
49 ]);
50 }
51}
processRequest(HttpRequest $request, bool $isSelectedAllRows, ?Filter $filter=null)
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29