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

Method importFile

lib/Controller/DataloadController.php:245–254  ·  view source on GitHub ↗

* Import data into dataset from an internal or external file * * @param int $reportId * @param $path * @param bool $isDataset * @return DataResponse|NotFoundResponse * @throws Exception */

(int $reportId, $path, bool $isDataset, $storageMapping = null)

Source from the content-addressed store, hash-verified

243 * @throws Exception
244 */
245 #[NoAdminRequired]
246 public function importFile(int $reportId, $path, bool $isDataset, $storageMapping = null)
247 {
248 $result = $this->DataloadService->importFile($reportId, $path, $isDataset, $storageMapping);
249 if ($result) {
250 return new DataResponse($result);
251 } else {
252 return new NotFoundResponse();
253 }
254 }
255}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected