Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
changepricesgroupchild.php
1<?php
2
4
14
15Loader::requireModule('iblock');
16
25{
26 public static function getId(): string
27 {
28 return 'change_price';
29 }
30
31 public function getName(): string
32 {
33 return Loc::getMessage('CATALOG_GRID_PANEL_UI_PRODUCT_ACTION_CHANGE_PRICES_NAME');
34 }
35
36 public function processRequest(HttpRequest $request, bool $isSelectedAllRows, ?Filter $filter): ?Result
37 {
38 return null;
39 }
40
41 protected function getOnchange(): Onchange
42 {
43 return new Onchange([
44 [
45 'ACTION' => Actions::RESET_CONTROLS,
46 ],
47 [
48 'ACTION' => Actions::CREATE,
49 'DATA' => [
50 (new Snippet)->getApplyButton([
51 'ONCHANGE' => [
52 [
53 'ACTION' => Actions::CALLBACK,
54 'DATA' => [
55 [
56 'JS' => 'Grid.showChangePriceDialog()',
57 ]
58 ],
59 ],
60 ],
61 ]),
62 ],
63 ],
64 ]);
65 }
66}
processRequest(HttpRequest $request, bool $isSelectedAllRows, ?Filter $filter)
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29