Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
analyticboardbatchmanager.php
1<?php
2
4
7
9{
10 private static $analyticBoardBatchList = [];
11 private static $indices = array(
12 'batchKey' => array(),
13 'group' => array(),
14 );
15
20 {
21 return self::$analyticBoardBatchList;
22 }
23
27 public function getIndices()
28 {
29 return self::$indices;
30 }
31
35 protected function getEventTypeKey()
36 {
37 return Common::EVENT_ANALYTIC_PAGE_BATCh_COLLECT;
38
39 }
40
44 public function call()
45 {
46 if (!self::$analyticBoardBatchList)
47 {
49 $batches = $this->getResult();
50 foreach ($batches as $batch)
51 {
52 self::$analyticBoardBatchList[$batch->getKey()] = $batch;
53 self::$indices['batchKey'][$batch->getKey()][] = $batch->getKey();
54 self::$indices['group'][$batch->getGroup()][] = $batch->getKey();
55 }
56 }
57 return self::$analyticBoardBatchList;
58 }
59
60 public function clearCache()
61 {
62 self::$analyticBoardBatchList = [];
63 }
64}