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

Method readReport

lib/Controller/ShareController.php:76–83  ·  view source on GitHub ↗

* get all shares for a report * * @param $item_source * @return DataResponse * @throws Exception */

($item_source)

Source from the content-addressed store, hash-verified

74 * @throws Exception
75 */
76 #[NoAdminRequired]
77 public function readReport($item_source) {
78 if ($this->ReportService->isOwn($item_source)) {
79 return new DataResponse($this->ShareService->read(ShareService::SHARE_ITEM_TYPE_REPORT, $item_source));
80 } else {
81 return new DataResponse(false);
82 }
83 }
84
85 /**
86 * get all shares for a panorama

Callers

nothing calls this directly

Calls 2

isOwnMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected