Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
eventhandler.php
1
<?php
2
3
namespace
Bitrix\Catalog\Integration\Report
;
4
5
use
Bitrix\Catalog\Access\AccessController
;
6
use
Bitrix\Catalog\Access\ActionDictionary
;
7
use
Bitrix\Catalog\Integration\Report\Dashboard\DashboardManager
;
8
use
Bitrix\Main\Loader
;
9
10
final
class
EventHandler
11
{
12
public
const
BATCH_GROUP_CATALOG
=
'catalog_general'
;
13
14
public
const
BATCH_INVENTORY_MANAGEMENT
=
'catalog_inventory_management'
;
15
public
const
BATCH_INVENTORY_MANAGEMENT_SORT
= 160;
16
17
public
static
function
onAnalyticPageBatchCollect
(): array
18
{
19
return
DashboardManager::getManager()->getAnalyticBoardBatchList();
20
}
21
22
public
static
function
onAnalyticPageCollect
(): array
23
{
24
return
DashboardManager::getManager()->getAnalyticBoardList();
25
}
26
27
public
static
function
onReportHandlerCollect
(): array
28
{
29
return
DashboardManager::getManager()->getActiveHandlerList();
30
}
31
32
public
static
function
onViewsCollect
(): array
33
{
34
return
DashboardManager::getManager()->getActiveViewList();
35
}
36
37
public
static
function
onDefaultBoardsCollect
(): array
38
{
39
return
DashboardManager::getManager()->getDashboardList();
40
}
41
42
private
static
function
checkDocumentReadRights(): bool
43
{
44
return
Loader::includeModule(
'catalog'
) && AccessController::getCurrent()->check(ActionDictionary::ACTION_CATALOG_READ);
45
}
46
}
Bitrix\Catalog\Access\AccessController
Definition
AccessController.php:28
Bitrix\Catalog\Access\ActionDictionary
Definition
ActionDictionary.php:17
Bitrix\Catalog\Integration\Report\Dashboard\DashboardManager
Definition
dashboardmanager.php:13
Bitrix\Catalog\Integration\Report\EventHandler
Definition
eventhandler.php:11
Bitrix\Catalog\Integration\Report\EventHandler\BATCH_INVENTORY_MANAGEMENT
const BATCH_INVENTORY_MANAGEMENT
Definition
eventhandler.php:14
Bitrix\Catalog\Integration\Report\EventHandler\onViewsCollect
static onViewsCollect()
Definition
eventhandler.php:32
Bitrix\Catalog\Integration\Report\EventHandler\onAnalyticPageCollect
static onAnalyticPageCollect()
Definition
eventhandler.php:22
Bitrix\Catalog\Integration\Report\EventHandler\BATCH_INVENTORY_MANAGEMENT_SORT
const BATCH_INVENTORY_MANAGEMENT_SORT
Definition
eventhandler.php:15
Bitrix\Catalog\Integration\Report\EventHandler\onAnalyticPageBatchCollect
static onAnalyticPageBatchCollect()
Definition
eventhandler.php:17
Bitrix\Catalog\Integration\Report\EventHandler\BATCH_GROUP_CATALOG
const BATCH_GROUP_CATALOG
Definition
eventhandler.php:12
Bitrix\Catalog\Integration\Report\EventHandler\onReportHandlerCollect
static onReportHandlerCollect()
Definition
eventhandler.php:27
Bitrix\Catalog\Integration\Report\EventHandler\onDefaultBoardsCollect
static onDefaultBoardsCollect()
Definition
eventhandler.php:37
Bitrix\Main\Loader
Definition
loader.php:12
Bitrix\Catalog\Integration\Report
modules
catalog
lib
integration
report
eventhandler.php
Создано системой
1.10.0