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

Method delete

lib/Controller/PanoramaController.php:107–115  ·  view source on GitHub ↗

* Delete report and all depending objects * * @param int $panoramaId * @return DataResponse */

(int $panoramaId)

Source from the content-addressed store, hash-verified

105 * @return DataResponse
106 */
107 #[NoAdminRequired]
108 public function delete(int $panoramaId)
109 {
110 if ($this->PanoramaService->isOwn($panoramaId)) {
111 return new DataResponse($this->PanoramaService->delete($panoramaId));
112 } else {
113 return new DataResponse(false, 403);
114 }
115 }
116
117 /**
118 * get report details

Callers

nothing calls this directly

Calls 1

isOwnMethod · 0.45

Tested by

no test coverage detected