Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
analyticboardmanager.php
1<?php
3
6
8{
9 private static $analyticBoardList = [];
10 private static $indices = array(
11 'boardKey' => array(),
12 'boardBatchKey' => array(),
13 'group' => array(),
14 );
15
16
20 public function getAnalyticBoardsList()
21 {
22 return self::$analyticBoardList;
23 }
24
28 public function getIndices()
29 {
30 return self::$indices;
31 }
32
36 protected function getEventTypeKey()
37 {
38 return Common::EVENT_ANALYTIC_PAGE_COLLECT;
39
40 }
41
45 public function call()
46 {
47 if (!self::$analyticBoardList)
48 {
50 $boards = $this->getResult();
51 foreach ($boards as $board)
52 {
53 self::$analyticBoardList[$board->getBoardKey()] = $board;
54 self::$indices['boardKey'][$board->getBoardKey()][] = $board->getBoardKey();
55 self::$indices['boardBatchKey'][$board->getBatchKey()][] = $board->getBoardKey();
56 self::$indices['group'][$board->getGroup()][] = $board->getBoardKey();
57 }
58 }
59 return self::$analyticBoardList;
60 }
61
62 public function clearCache()
63 {
64 self::$analyticBoardList = [];
65 }
66}