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

Class DataloadService

lib/Service/DataloadService.php:22–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20use Psr\Log\LoggerInterface;
21
22class DataloadService
23{
24 private $userId;
25 private $logger;
26 private $StorageService;
27 private $DatasourceController;
28 private $ActivityManager;
29 private $ReportService;
30 private $DatasetService;
31 private $VariableService;
32 private $l10n;
33 private $DataloadMapper;
34 private $NotificationManager;
35 private FlexibleStorageService $FlexibleStorageService;
36
37 public function __construct(
38 $userId,
39 IL10N $l10n,
40 LoggerInterface $logger,
41 ActivityManager $ActivityManager,
42 DatasourceController $DatasourceController,
43 ReportService $ReportService,
44 DatasetService $DatasetService,
45 StorageService $StorageService,
46 VariableService $VariableService,
47 NotificationManager $NotificationManager,
48 DataloadMapper $DataloadMapper,
49 FlexibleStorageService $FlexibleStorageService
50 )
51 {
52 $this->userId = $userId;
53 $this->l10n = $l10n;
54 $this->logger = $logger;
55 $this->StorageService = $StorageService;
56 $this->ActivityManager = $ActivityManager;
57 $this->DatasourceController = $DatasourceController;
58 $this->ReportService = $ReportService;
59 $this->DatasetService = $DatasetService;
60 $this->VariableService = $VariableService;
61 $this->NotificationManager = $NotificationManager;
62 $this->DataloadMapper = $DataloadMapper;
63 $this->FlexibleStorageService = $FlexibleStorageService;
64 }
65
66 // Data loads
67 // Data loads
68 // Data loads
69
70 /**
71 * create a new data load
72 *
73 * @param $datasetId
74 * @param $reportId
75 * @param int $datasourceId
76 * @return int
77 * @throws \OCP\DB\Exception
78 */
79 public function create($datasetId, int $datasourceId)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected