Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
removeaction.php
1
<?php
2
3
namespace
Bitrix\Main\Grid\Panel\Action
;
4
5
use
Bitrix\Main\Grid\Panel\Snippet
;
6
use
Bitrix\Main\HttpRequest
;
7
8
abstract
class
RemoveAction
implements
Action
9
{
10
public
static
function
getId
(): string
11
{
12
return
'remove'
;
13
}
14
15
public
function
getControl
(): ?array
16
{
17
return
(
new
Snippet
)->getRemoveButton();
18
}
19
20
protected
function
getRequestRows
(
HttpRequest
$request): ?array
21
{
22
$ids = $request->getPost(
'ID'
);
23
if
(!is_array($ids))
24
{
25
return
null
;
26
}
27
28
return
$ids;
29
}
30
}
Bitrix\Main\Grid\Panel\Action\RemoveAction
Definition
removeaction.php:9
Bitrix\Main\Grid\Panel\Action\RemoveAction\getRequestRows
getRequestRows(HttpRequest $request)
Definition
removeaction.php:20
Bitrix\Main\Grid\Panel\Action\RemoveAction\getControl
getControl()
Definition
removeaction.php:15
Bitrix\Main\Grid\Panel\Action\RemoveAction\getId
static getId()
Definition
removeaction.php:10
Bitrix\Main\Grid\Panel\Snippet
Definition
snippet.php:19
Bitrix\Main\HttpRequest
Definition
httprequest.php:20
Bitrix\Main\Grid\Panel\Action\Action
Definition
action.php:18
Bitrix\Main\Grid\Panel\Action
Definition
action.php:3
Bitrix\Main\Grid\Panel\Snippet
Definition
button.php:3
modules
main
lib
grid
panel
action
removeaction.php
Создано системой
1.10.0