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

Method delete

lib/Controller/PanoramaController.php:83–91  ·  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

81 * @return DataResponse
82 */
83 #[NoAdminRequired]
84 public function delete(int $panoramaId)
85 {
86 if ($this->PanoramaService->isOwn($panoramaId)) {
87 return new DataResponse($this->PanoramaService->delete($panoramaId));
88 } else {
89 return new DataResponse(false, 403);
90 }
91 }
92
93 /**
94 * get report details

Callers

nothing calls this directly

Calls 1

isOwnMethod · 0.45

Tested by

no test coverage detected