Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
groupchildaction.php
1
<?php
2
3
namespace
Bitrix\Main\Grid\Panel\Action\Group
;
4
5
use
Bitrix\Main\Filter\Filter
;
6
use
Bitrix\Main\Grid\Panel\Snippet\Onchange
;
7
use
Bitrix\Main\HttpRequest
;
8
use
Bitrix\Main\Result
;
9
10
abstract
class
GroupChildAction
11
{
12
abstract
public
static
function
getId
(): string;
13
14
abstract
public
function
getName
(): string;
15
16
abstract
public
function
processRequest
(
HttpRequest
$request,
bool
$isSelectedAllRows, ?
Filter
$filter): ?
Result
;
17
18
abstract
protected
function
getOnchange
():
Onchange
;
19
20
public
function
getDropdownItem
(): array
21
{
22
return
[
23
'VALUE'
=> static::getId(),
24
'NAME'
=> $this->
getName
(),
25
'ONCHANGE'
=> $this->
getOnchange
()->toArray(),
26
];
27
}
28
29
protected
function
getRequestRows
(
HttpRequest
$request): ?array
30
{
31
$ids = $request->getPost(
'rows'
);
32
if
(!is_array($ids))
33
{
34
return
null
;
35
}
36
37
return
$ids;
38
}
39
}
Bitrix\Main\Filter\Filter
Definition
filter.php:5
Bitrix\Main\Grid\Panel\Action\Group\GroupChildAction
Definition
groupchildaction.php:11
Bitrix\Main\Grid\Panel\Action\Group\GroupChildAction\getName
getName()
Bitrix\Main\Grid\Panel\Action\Group\GroupChildAction\getDropdownItem
getDropdownItem()
Definition
groupchildaction.php:20
Bitrix\Main\Grid\Panel\Action\Group\GroupChildAction\getRequestRows
getRequestRows(HttpRequest $request)
Definition
groupchildaction.php:29
Bitrix\Main\Grid\Panel\Action\Group\GroupChildAction\processRequest
processRequest(HttpRequest $request, bool $isSelectedAllRows, ?Filter $filter)
Bitrix\Main\Grid\Panel\Action\Group\GroupChildAction\getId
static getId()
Bitrix\Main\Grid\Panel\Action\Group\GroupChildAction\getOnchange
getOnchange()
Bitrix\Main\Grid\Panel\Snippet\Onchange
Definition
onchange.php:15
Bitrix\Main\HttpRequest
Definition
httprequest.php:20
Bitrix\Main\ORM\Data\Result
Definition
result.php:16
Bitrix\Main\Result
Definition
result.php:14
Bitrix\Main\Grid\Panel\Action\Group
Definition
groupchildaction.php:3
modules
main
lib
grid
panel
action
group
groupchildaction.php
Создано системой
1.10.0