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