Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
gridhandler.php
1<?php
2
4
8
10{
11 public function prepare()
12 {
13 $reportData = [
14 'filter' => $this->getFilterParameters(),
15 ];
16
17 if (!AccessController::getCurrent()->check(ActionDictionary::ACTION_STORE_VIEW))
18 {
19 $reportData['stub'] = static::getNoAccessToStoresStub();
20 }
21 else
22 {
23 $storeTotals = $this->getStoreTotals();
24 if (!empty($storeTotals))
25 {
26 $reportData['items'] = $storeTotals;
27 $reportData['overall'] = $this->prepareOverallTotals($storeTotals);
28 }
29 }
30
31 return $reportData;
32 }
33}