Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
viewprovider.php
1<?php
3
6
13class ViewProvider extends Base
14{
18 protected function availableFilterKeys()
19 {
20 return array('primary', 'dataType');
21 }
22
26 protected function getManagerInstance()
27 {
29 }
30
34 protected function getEntitiesList()
35 {
36 return $this->getManagerInstance()->getViewControllers();
37 }
38
42 protected function getIndices()
43 {
44 return $this->getManagerInstance()->getIndices();
45 }
46
51 public static function getViewByViewKey($viewKey)
52 {
53 $viewProvider = new ViewProvider();
54 $viewProvider->addFilter('primary', $viewKey);
55 return $viewProvider->execute()->getFirstResult();
56 }
57}