Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
viewmanager.php
1<?php
2
4
7
12class ViewManager extends Base
13{
14 private static $viewsList;
15 private static $indices = array(
16 'dataType' => array()
17 );
18
22 protected function getEventTypeKey()
23 {
24 return Common::EVENT_VIEW_TYPE_COLLECT;
25 }
26
30 public function getViewControllers()
31 {
32 return self::$viewsList;
33 }
34
38 public function getIndices()
39 {
40 return self::$indices;
41 }
42
46 public function call()
47 {
48 if (!self::$viewsList)
49 {
51 $views = $this->getResult();
52 foreach ($views as $view)
53 {
54 self::$viewsList[$view->getKey()] = $view;
55 self::$indices['dataType'][$view->getCompatibleDataType()][] = $view->getKey();
56
57 }
58 }
59 return self::$viewsList;
60 }
61}