Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
storesaledashboard.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\StoreSaleFilter
;
8
use
Bitrix\Catalog\Integration\Report\View\StoreSale\StoreSaleChart
;
9
use
Bitrix\Catalog\Integration\Report\View\StoreSale\StoreSaleGrid
;
10
use
Bitrix\Main\Localization\Loc
;
11
use
Bitrix\Report\VisualConstructor\AnalyticBoard
;
12
13
class
StoreSaleDashboard
extends
CatalogDashboard
14
{
15
public
const
BOARD_VERSION
=
'v2'
;
16
public
const
BOARD_KEY
=
'catalog_warehouse_sale'
;
17
18
public
const
ACCESS_BOARD_ID
= 1;
19
20
public
function
getBoardKey
(): string
21
{
22
return
static::BOARD_KEY;
23
}
24
25
public
function
getAccessBoardId
(): int
26
{
27
return
self::ACCESS_BOARD_ID
;
28
}
29
30
public
function
getBoardVersion
(): string
31
{
32
return
static::BOARD_VERSION;
33
}
34
35
public
function
getAnalyticBoard
():
AnalyticBoard
36
{
37
$analyticBoard = parent::getAnalyticBoard();
38
$analyticBoard->setFilter(
new
StoreSaleFilter
($this->
getBoardKey
()));
39
40
return
$analyticBoard;
41
}
42
43
protected
static
function
getDefaultGroup
():
Group
44
{
45
return
(
new
StoreGroup
());
46
}
47
48
protected
static
function
getDefaultViewList
(): array
49
{
50
return
[
51
new
StoreSaleChart
(),
52
new
StoreSaleGrid
(),
53
];
54
}
55
56
public
function
getBoardTitle
(): string
57
{
58
return
Loc::getMessage
(
'STORE_SALE_DASHBOARD_TITLE'
);
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\StoreSaleDashboard
Definition
storesaledashboard.php:14
Bitrix\Catalog\Integration\Report\Dashboard\StoreSaleDashboard\BOARD_KEY
const BOARD_KEY
Definition
storesaledashboard.php:16
Bitrix\Catalog\Integration\Report\Dashboard\StoreSaleDashboard\getAccessBoardId
getAccessBoardId()
Definition
storesaledashboard.php:25
Bitrix\Catalog\Integration\Report\Dashboard\StoreSaleDashboard\ACCESS_BOARD_ID
const ACCESS_BOARD_ID
Definition
storesaledashboard.php:18
Bitrix\Catalog\Integration\Report\Dashboard\StoreSaleDashboard\getBoardTitle
getBoardTitle()
Definition
storesaledashboard.php:56
Bitrix\Catalog\Integration\Report\Dashboard\StoreSaleDashboard\getDefaultViewList
static getDefaultViewList()
Definition
storesaledashboard.php:48
Bitrix\Catalog\Integration\Report\Dashboard\StoreSaleDashboard\getDefaultGroup
static getDefaultGroup()
Definition
storesaledashboard.php:43
Bitrix\Catalog\Integration\Report\Dashboard\StoreSaleDashboard\getAnalyticBoard
getAnalyticBoard()
Definition
storesaledashboard.php:35
Bitrix\Catalog\Integration\Report\Dashboard\StoreSaleDashboard\getBoardKey
getBoardKey()
Definition
storesaledashboard.php:20
Bitrix\Catalog\Integration\Report\Dashboard\StoreSaleDashboard\getBoardVersion
getBoardVersion()
Definition
storesaledashboard.php:30
Bitrix\Catalog\Integration\Report\Dashboard\StoreSaleDashboard\BOARD_VERSION
const BOARD_VERSION
Definition
storesaledashboard.php:15
Bitrix\Catalog\Integration\Report\Filter\StoreSaleFilter
Definition
storesalefilter.php:9
Bitrix\Catalog\Integration\Report\View\StoreSale\StoreSaleChart
Definition
storesalechart.php:12
Bitrix\Catalog\Integration\Report\View\StoreSale\StoreSaleGrid
Definition
storesalegrid.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
storesaledashboard.php
Создано системой
1.10.0