Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
groupchildaction.php
1<?php
2
4
9
10abstract 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}
processRequest(HttpRequest $request, bool $isSelectedAllRows, ?Filter $filter)