Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
analyticboardbatchprovider.php
1<?php
3
6use Bitrix\Report\VisualConstructor\IProvidable;
7
9{
13 protected function availableFilterKeys()
14 {
15 return ['primary', 'batchKey', 'group'];
16 }
17
21 protected function getManagerInstance()
22 {
23 return AnalyticBoardBatchManager::getInstance();
24 }
25
29 protected function getEntitiesList()
30 {
31 return $this->getManagerInstance()->getAnalyticBoardsBatchList();
32 }
33
38 protected function getIndices()
39 {
40 return $this->getManagerInstance()->getIndices();
41 }
42
46 protected function sortResults(&$result)
47 {
48 usort($result, function($a, $b)
49 {
52 return $a->getOrder() <=> $b->getOrder();
53 });
54 }
55
62 protected function applyFilters($entities, $filteredEntityIds)
63 {
64 $result = [];
65
66 foreach ($entities as $key => $entity)
67 {
69 if (in_array($key, $filteredEntityIds))
70 {
71 $this->processAvailableRelations($entity);
72 $result[] = $entity;
73 }
74 }
75
76 return $result;
77 }
78}
applyFilters($entities, $filteredEntityIds)
Definition base.php:132