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

Method importClipboard

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

219 * @throws Exception
220 */
221 #[NoAdminRequired]
222 public function importClipboard(int $reportId, $import, bool $isDataset, $storageMapping = null, $header = null, $delimiter = null)
223 {
224 $result = $this->DataloadService->importClipboard($reportId, $import, $isDataset, $storageMapping, $header, $delimiter);
225 if ($result) {
226 return new DataResponse($result);
227 } else {
228 return new NotFoundResponse();
229 }
230 }
231
232 /**
233 * 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