MCPcopy Create free account
hub / github.com/Rello/analytics / DatasetService

Class DatasetService

lib/Service/DatasetService.php:26–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24use Psr\Log\LoggerInterface;
25
26class DatasetService {
27 private $userId;
28 private $logger;
29 private $tagManager;
30 private $ShareService;
31 private $StorageMapper;
32 private $DatasetMapper;
33 private $ThresholdService;
34 private $DataloadMapper;
35 private $ActivityManager;
36 private $rootFolder;
37 private $VariableService;
38 private $ReportMapper;
39 private $contextChatManager;
40 private static $contextChatAvailable = null;
41 private $l10n;
42
43 public function __construct(
44 $userId,
45 IL10N $l10n,
46 LoggerInterface $logger,
47 ITagManager $tagManager,
48 ShareService $ShareService,
49 StorageMapper $StorageMapper,
50 DatasetMapper $DatasetMapper,
51 ThresholdService $ThresholdService,
52 DataloadMapper $DataloadMapper,
53 ActivityManager $ActivityManager,
54 IRootFolder $rootFolder,
55 VariableService $VariableService,
56 ReportMapper $ReportMapper
57 ) {
58 $this->userId = $userId;
59 $this->logger = $logger;
60 $this->tagManager = $tagManager;
61 $this->ShareService = $ShareService;
62 $this->ThresholdService = $ThresholdService;
63 $this->StorageMapper = $StorageMapper;
64 $this->DatasetMapper = $DatasetMapper;
65 $this->DataloadMapper = $DataloadMapper;
66 $this->ActivityManager = $ActivityManager;
67 $this->rootFolder = $rootFolder;
68 $this->VariableService = $VariableService;
69 $this->ReportMapper = $ReportMapper;
70 $this->l10n = $l10n;
71 }
72
73 /**
74 * get all datasets
75 *
76 * @return array
77 */
78 public function index() {
79 $ownDatasets = $this->DatasetMapper->index();
80
81 // get schedule indicators for icons shown in the navigation
82 $dataloads = $this->DataloadMapper->getScheduleMetadata();
83 $datasetIndex = [];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected