Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
productpanel.php
1<?php
2
4
12
13class ProductPanel extends Panel
14{
23 public function processRequest(GridRequest $request, ?Filter $filter = null): ?GridResponse
24 {
25 $result = parent::processRequest($request, $filter);
26 if (isset($result))
27 {
28 return $result;
29 }
30
31 $actionId = $request->getHttpRequest()->getPost('action');
32 if ($actionId === 'change_price')
33 {
34 $action = $this->getActionById(ChangePricesActionsItem::getId());
35 if (isset($action))
36 {
37 $result = $action->processRequest($request->getHttpRequest(), false, $filter);
38 if ($result instanceof Result)
39 {
40 return (new GridResponseFactory)->createFromResult($result);
41 }
42 }
43 }
44
45 return null;
46 }
47}
processRequest(GridRequest $request, ?Filter $filter=null)
getActionById(string $id)
Definition panel.php:61