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

Method delete

lib/Controller/ReportController.php:122–130  ·  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

120 * @return DataResponse
121 */
122 #[NoAdminRequired]
123 public function delete(int $reportId)
124 {
125 if ($this->ReportService->isOwn($reportId)) {
126 return new DataResponse($this->ReportService->delete($reportId));
127 } else {
128 return new DataResponse(false,400);
129 }
130 }
131
132 /**
133 * get report details

Callers

nothing calls this directly

Calls 1

isOwnMethod · 0.45

Tested by

no test coverage detected