Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
gridhandler.php
1
<?php
2
3
namespace
Bitrix\Catalog\Integration\Report\Handler\StoreSale
;
4
5
use
Bitrix\Catalog\Access\AccessController
;
6
use
Bitrix\Catalog\Access\ActionDictionary
;
7
use
Bitrix\Catalog\Integration\Report\Handler\BaseHandler
;
8
9
class
GridHandler
extends
BaseHandler
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
}
Bitrix\Catalog\Access\AccessController
Definition
AccessController.php:28
Bitrix\Catalog\Access\ActionDictionary
Definition
ActionDictionary.php:17
Bitrix\Catalog\Integration\Report\Handler\BaseHandler
Definition
basehandler.php:26
Bitrix\Catalog\Integration\Report\Handler\BaseHandler\getStoreTotals
getStoreTotals()
Definition
basehandler.php:42
Bitrix\Catalog\Integration\Report\Handler\BaseHandler\prepareOverallTotals
prepareOverallTotals(array $storeTotals)
Definition
basehandler.php:435
Bitrix\Catalog\Integration\Report\Handler\BaseHandler\getFilterParameters
getFilterParameters()
Definition
basehandler.php:502
Bitrix\Catalog\Integration\Report\Handler\StoreSale\GridHandler
Definition
gridhandler.php:10
Bitrix\Catalog\Integration\Report\Handler\StoreSale\GridHandler\prepare
prepare()
Definition
gridhandler.php:11
Bitrix\Catalog\Integration\Report\Handler\StoreSale
Definition
charthandler.php:3
modules
catalog
lib
integration
report
handler
storesale
gridhandler.php
Создано системой
1.10.0