Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
activategroupchild.php
1
<?php
2
3
namespace
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup
;
4
5
use
Bitrix\Iblock\Grid\ActionType
;
6
use Bitrix\Iblock\Grid\Panel\UI\Actions\Helpers\ChangeActiveHandler;
7
use
Bitrix\Main\Filter\Filter
;
8
use
Bitrix\Main\Grid\Panel\Actions
;
9
use
Bitrix\Main\Grid\Panel\Snippet
;
10
use
Bitrix\Main\Grid\Panel\Snippet\Onchange
;
11
use
Bitrix\Main\HttpRequest
;
12
use
Bitrix\Main\Localization\Loc
;
13
use
Bitrix\Main\Result
;
14
18
final
class
ActivateGroupChild
extends
BaseGroupChild
19
{
20
use ChangeActiveHandler;
21
22
public
static
function
getId
(): string
23
{
24
return
ActionType::ACTIVATE
;
25
}
26
27
public
function
getName
(): string
28
{
29
return
Loc::getMessage
(
'IBLOCK_GRID_PANEL_UI_ACTIONS_ELEMENT_GROUP_ACTIVATE_NAME'
);
30
}
31
32
public
function
processRequest
(
HttpRequest
$request,
bool
$isSelectedAllRows, ?
Filter
$filter =
null
): ?
Result
33
{
34
return
$this->processSetActive($request, $isSelectedAllRows, $filter,
true
);
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
}
Bitrix\Iblock\Grid\ActionType
Definition
actiontype.php:5
Bitrix\Iblock\Grid\ActionType\ACTIVATE
const ACTIVATE
Definition
actiontype.php:11
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\ActivateGroupChild
Definition
activategroupchild.php:19
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\ActivateGroupChild\getName
getName()
Definition
activategroupchild.php:27
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\ActivateGroupChild\processRequest
processRequest(HttpRequest $request, bool $isSelectedAllRows, ?Filter $filter=null)
Definition
activategroupchild.php:32
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\ActivateGroupChild\getId
static getId()
Definition
activategroupchild.php:22
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\ActivateGroupChild\getOnchange
getOnchange()
Definition
activategroupchild.php:37
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup\BaseGroupChild
Definition
basegroupchild.php:9
Bitrix\Main\Filter\Filter
Definition
filter.php:5
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\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\Main\Result
Definition
result.php:14
Bitrix\Iblock\Grid\Panel\UI\Actions\Item\ElementGroup
Definition
activategroupchild.php:3
Bitrix\Main\Grid\Panel\Snippet
Definition
button.php:3
modules
iblock
lib
grid
panel
ui
actions
item
elementgroup
activategroupchild.php
Создано системой
1.10.0