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

Method delete

lib/Controller/ReportController.php:116–124  ·  view source on GitHub ↗

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

(int $reportId)

Source from the content-addressed store, hash-verified

114 * @return DataResponse
115 */
116 #[NoAdminRequired]
117 public function delete(int $reportId)
118 {
119 if ($this->ReportService->isOwn($reportId)) {
120 return new DataResponse($this->ReportService->delete($reportId));
121 } else {
122 return new DataResponse(false,400);
123 }
124 }
125
126 /**
127 * get report details

Callers

nothing calls this directly

Calls 1

isOwnMethod · 0.45

Tested by

no test coverage detected