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

Method readPanorama

lib/Controller/ShareController.php:92–99  ·  view source on GitHub ↗

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

($item_source)

Source from the content-addressed store, hash-verified

90 * @throws Exception
91 */
92 #[NoAdminRequired]
93 public function readPanorama($item_source) {
94 if ($this->PanoramaService->isOwn($item_source)) {
95 return new DataResponse($this->ShareService->read(ShareService::SHARE_ITEM_TYPE_PANORAMA, $item_source));
96 } else {
97 return new DataResponse(false);
98 }
99 }
100
101 /**
102 * update/set share password

Callers

nothing calls this directly

Calls 2

isOwnMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected