Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
removeaction.php
1<?php
2
4
7
8abstract 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}