Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
storestockdashboard.php
1<?php
2
4
12
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 {
28 }
29
30 public function getAccessBoardId(): int
31 {
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 [
44 new StoreStockGrid(),
45 ];
46 }
47
48 protected static function getDefaultGroup(): Group
49 {
50 return (new StoreGroup());
51 }
52
54 {
55 $analyticBoard = parent::getAnalyticBoard();
56 $analyticBoard->setFilter(new StoreStockFilter($this->getBoardKey()));
57
58 return $analyticBoard;
59 }
60}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29