1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
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
}
$request
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
Определения
catalog_reindex.php:36
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ChangePricesGroupChild
Определения
changepricesgroupchild.php:25
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ChangePricesGroupChild\getName
getName()
Определения
changepricesgroupchild.php:31
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ChangePricesGroupChild\processRequest
processRequest(HttpRequest $request, bool $isSelectedAllRows, ?Filter $filter)
Определения
changepricesgroupchild.php:36
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ChangePricesGroupChild\getId
static getId()
Определения
changepricesgroupchild.php:26
Bitrix\Catalog\Grid\Panel\UI\Item\Group\ChangePricesGroupChild\getOnchange
getOnchange()
Определения
changepricesgroupchild.php:41
Bitrix\Main\Grid\Panel\Action\Group\GroupChildAction
Определения
groupchildaction.php:11
Bitrix\Main\Grid\Panel\Actions
Определения
actions.php:13
Bitrix\Main\Grid\Panel\Snippet\Onchange
Определения
onchange.php:15
Bitrix\Main\HttpRequest
Определения
httprequest.php:20
Bitrix\Main\Loader
Определения
loader.php:13
Bitrix\Main\Localization\Loc
Определения
loc.php:12
Bitrix\Main\ORM\Data\Result
Определения
result.php:16
$filter
$filter
Определения
iblock_catalog_list.php:54
Bitrix\Catalog\Filter
Bitrix\Catalog\Grid\Panel\UI\Item\Group
Определения
changepricesgroupchild.php:3
Bitrix\Main\Filter
Bitrix\Main\Grid\Panel\Snippet
Определения
button.php:3
Bitrix\Sale\Discount\Result
Определения
compatibleformat.php:2
bitrix
modules
catalog
lib
grid
panel
ui
item
group
changepricesgroupchild.php
Создано системой
1.14.0