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

Method importClipboard

lib/Controller/DataloadController.php:225–234  ·  view source on GitHub ↗

* Import clipboard data * * @param int $reportId * @param $import * @param bool $isDataset * @return DataResponse|NotFoundResponse * @throws Exception */

(int $reportId, $import, bool $isDataset, $storageMapping = null, $header = null, $delimiter = null)

Source from the content-addressed store, hash-verified

223 * @throws Exception
224 */
225 #[NoAdminRequired]
226 public function importClipboard(int $reportId, $import, bool $isDataset, $storageMapping = null, $header = null, $delimiter = null)
227 {
228 $result = $this->DataloadService->importClipboard($reportId, $import, $isDataset, $storageMapping, $header, $delimiter);
229 if ($result) {
230 return new DataResponse($result);
231 } else {
232 return new NotFoundResponse();
233 }
234 }
235
236 /**
237 * Import data into dataset from an internal or external file

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected