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

Class DatasetService

lib/Service/DatasetService.php:26–424  ·  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 private FlexibleStorageService $FlexibleStorageService;
43
44 public function __construct(
45 $userId,
46 IL10N $l10n,
47 LoggerInterface $logger,
48 ITagManager $tagManager,
49 ShareService $ShareService,
50 StorageMapper $StorageMapper,
51 DatasetMapper $DatasetMapper,
52 ThresholdService $ThresholdService,
53 DataloadMapper $DataloadMapper,
54 ActivityManager $ActivityManager,
55 IRootFolder $rootFolder,
56 VariableService $VariableService,
57 ReportMapper $ReportMapper,
58 FlexibleStorageService $FlexibleStorageService
59 ) {
60 $this->userId = $userId;
61 $this->logger = $logger;
62 $this->tagManager = $tagManager;
63 $this->ShareService = $ShareService;
64 $this->ThresholdService = $ThresholdService;
65 $this->StorageMapper = $StorageMapper;
66 $this->DatasetMapper = $DatasetMapper;
67 $this->DataloadMapper = $DataloadMapper;
68 $this->ActivityManager = $ActivityManager;
69 $this->rootFolder = $rootFolder;
70 $this->VariableService = $VariableService;
71 $this->ReportMapper = $ReportMapper;
72 $this->l10n = $l10n;
73 $this->FlexibleStorageService = $FlexibleStorageService;
74 }
75
76 /**
77 * get all datasets
78 *
79 * @return array
80 */
81 public function index() {
82 $ownDatasets = $this->DatasetMapper->index();
83

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected