Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
defaultboardmanager.php
1<?php
2
4
7
13{
14 private static $defaultBoardsList;
15 private static $indices = array(
16 'boardKey' => array()
17 );
18
22 public function getDefaultBoardsList()
23 {
24 return self::$defaultBoardsList;
25 }
26
30 public function getIndices()
31 {
32 return self::$indices;
33 }
34
38 protected function getEventTypeKey()
39 {
40 return Common::EVENT_DEFAULT_BOARDS_COLLECT;
41 }
42
46 public function call()
47 {
48 if (!self::$defaultBoardsList)
49 {
51 $boards = $this->getResult();
52 foreach ($boards as $board)
53 {
54 self::$defaultBoardsList[$board->getBoardKey()] = $board;
55 self::$indices['boardKey'][$board->getBoardKey()][] = $board->getBoardKey();
56
57 }
58 }
59 return self::$defaultBoardsList;
60 }
61
62
63}