Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
eventhandler.php
1<?php
2
4
9
10final class EventHandler
11{
12 public const BATCH_GROUP_CATALOG = 'catalog_general';
13
14 public const BATCH_INVENTORY_MANAGEMENT = 'catalog_inventory_management';
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}