1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
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 {
72 $result[] = $entity;
73 }
74 }
75
76 return $result;
77 }
78}
applyFilters($entities, $filteredEntityIds)
Определения base.php:132
$result
Определения get_property_values.php:14
$entity
if(empty($signedUserToken)) $key
Определения quickway.php:257
else $a
Определения template.php:137