Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
changepricesgroupchild.php
1
<?php
2
3
namespace
Bitrix\Catalog\Grid\Panel\UI\Item\Group
;
4
5
use
Bitrix\Main\Filter\Filter
;
6
use
Bitrix\Main\Grid\Panel\Action\Group\GroupChildAction
;
7
use
Bitrix\Main\Grid\Panel\Actions
;
8
use
Bitrix\Main\Grid\Panel\Snippet
;
9
use
Bitrix\Main\Grid\Panel\Snippet\Onchange
;
10
use
Bitrix\Main\HttpRequest
;
11
use
Bitrix\Main\Loader
;
12
use
Bitrix\Main\Localization\Loc
;
13
use
Bitrix\Main\Result
;
14
15
Loader::requireModule(
'iblock'
);
16
24
final
class
ChangePricesGroupChild
extends
GroupChildAction
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
}
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ChangePricesGroupChild
Definition
changepricesgroupchild.php:25
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ChangePricesGroupChild\getName
getName()
Definition
changepricesgroupchild.php:31
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ChangePricesGroupChild\processRequest
processRequest(HttpRequest $request, bool $isSelectedAllRows, ?Filter $filter)
Definition
changepricesgroupchild.php:36
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ChangePricesGroupChild\getId
static getId()
Definition
changepricesgroupchild.php:26
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ChangePricesGroupChild\getOnchange
getOnchange()
Definition
changepricesgroupchild.php:41
Bitrix\Main\DB\Result
Definition
result.php:19
Bitrix\Main\Filter\Filter
Definition
filter.php:5
Bitrix\Main\Grid\Panel\Action\Group\GroupChildAction
Definition
groupchildaction.php:11
Bitrix\Main\Grid\Panel\Actions
Definition
actions.php:13
Bitrix\Main\Grid\Panel\Snippet\Onchange
Definition
onchange.php:15
Bitrix\Main\Grid\Panel\Snippet
Definition
snippet.php:19
Bitrix\Main\HttpRequest
Definition
httprequest.php:20
Bitrix\Main\Loader
Definition
loader.php:12
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Catalog\Grid\Panel\UI\Item\Group
Definition
changepricesgroupchild.php:3
Bitrix\Main\Grid\Panel\Snippet
Definition
button.php:3
modules
catalog
lib
grid
panel
ui
item
group
changepricesgroupchild.php
Создано системой
1.10.0