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