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

Method importFile

lib/Controller/DataloadController.php:241–250  ·  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

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected