Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
storestockdashboard.php
1
<?php
2
3
namespace
Bitrix\Catalog\Integration\Report\Dashboard
;
4
5
use
Bitrix\Catalog\Integration\Report\Dashboard\Group\Group
;
6
use
Bitrix\Catalog\Integration\Report\Dashboard\Group\StoreGroup
;
7
use
Bitrix\Catalog\Integration\Report\Filter\StoreStockFilter
;
8
use
Bitrix\Catalog\Integration\Report\View\StoreStock\StoreStockGrid
;
9
use
Bitrix\Catalog\Integration\Report\View\StoreStock\StoreStockSaleChart
;
10
use
Bitrix\Main\Localization\Loc
;
11
use
Bitrix\Report\VisualConstructor\AnalyticBoard
;
12
13
final
class
StoreStockDashboard
extends
CatalogDashboard
14
{
15
public
const
BOARD_VERSION
=
'v2'
;
16
public
const
BOARD_KEY
=
'catalog_warehouse_stock'
;
17
18
public
const
ACCESS_BOARD_ID
= 2;
19
20
public
function
getBoardKey
(): string
21
{
22
return
self::BOARD_KEY
;
23
}
24
25
public
function
getBoardVersion
(): string
26
{
27
return
self::BOARD_VERSION
;
28
}
29
30
public
function
getAccessBoardId
(): int
31
{
32
return
self::ACCESS_BOARD_ID
;
33
}
34
35
public
function
getBoardTitle
(): string
36
{
37
return
Loc::getMessage
(
'STORE_STOCK_DASHBOARD_TITLE'
);
38
}
39
40
protected
static
function
getDefaultViewList
(): array
41
{
42
return
[
43
new
StoreStockSaleChart
(),
44
new
StoreStockGrid
(),
45
];
46
}
47
48
protected
static
function
getDefaultGroup
():
Group
49
{
50
return
(
new
StoreGroup
());
51
}
52
53
public
function
getAnalyticBoard
():
AnalyticBoard
54
{
55
$analyticBoard = parent::getAnalyticBoard();
56
$analyticBoard->setFilter(
new
StoreStockFilter
($this->
getBoardKey
()));
57
58
return
$analyticBoard;
59
}
60
}
Bitrix\Catalog\Integration\Report\Dashboard\CatalogDashboard
Definition
catalogdashboard.php:23
Bitrix\Catalog\Integration\Report\Dashboard\Group\StoreGroup
Definition
storegroup.php:8
Bitrix\Catalog\Integration\Report\Dashboard\StoreStockDashboard
Definition
storestockdashboard.php:14
Bitrix\Catalog\Integration\Report\Dashboard\StoreStockDashboard\BOARD_KEY
const BOARD_KEY
Definition
storestockdashboard.php:16
Bitrix\Catalog\Integration\Report\Dashboard\StoreStockDashboard\getAccessBoardId
getAccessBoardId()
Definition
storestockdashboard.php:30
Bitrix\Catalog\Integration\Report\Dashboard\StoreStockDashboard\ACCESS_BOARD_ID
const ACCESS_BOARD_ID
Definition
storestockdashboard.php:18
Bitrix\Catalog\Integration\Report\Dashboard\StoreStockDashboard\getBoardTitle
getBoardTitle()
Definition
storestockdashboard.php:35
Bitrix\Catalog\Integration\Report\Dashboard\StoreStockDashboard\getDefaultViewList
static getDefaultViewList()
Definition
storestockdashboard.php:40
Bitrix\Catalog\Integration\Report\Dashboard\StoreStockDashboard\getDefaultGroup
static getDefaultGroup()
Definition
storestockdashboard.php:48
Bitrix\Catalog\Integration\Report\Dashboard\StoreStockDashboard\getAnalyticBoard
getAnalyticBoard()
Definition
storestockdashboard.php:53
Bitrix\Catalog\Integration\Report\Dashboard\StoreStockDashboard\getBoardKey
getBoardKey()
Definition
storestockdashboard.php:20
Bitrix\Catalog\Integration\Report\Dashboard\StoreStockDashboard\getBoardVersion
getBoardVersion()
Definition
storestockdashboard.php:25
Bitrix\Catalog\Integration\Report\Dashboard\StoreStockDashboard\BOARD_VERSION
const BOARD_VERSION
Definition
storestockdashboard.php:15
Bitrix\Catalog\Integration\Report\Filter\StoreStockFilter
Definition
storestockfilter.php:7
Bitrix\Catalog\Integration\Report\View\StoreStock\StoreStockGrid
Definition
storestockgrid.php:12
Bitrix\Catalog\Integration\Report\View\StoreStock\StoreStockSaleChart
Definition
storestocksalechart.php:12
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Report\VisualConstructor\AnalyticBoard
Definition
analyticboard.php:14
Bitrix\Catalog\Integration\Report\Dashboard\Group\Group
Definition
group.php:6
Bitrix\Catalog\Integration\Report\Dashboard
Definition
catalogdashboard.php:3
modules
catalog
lib
integration
report
dashboard
storestockdashboard.php
Создано системой
1.10.0