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

Method getSharedPanorama

lib/Service/ShareService.php:256–264  ·  view source on GitHub ↗

* get metadata of a panorama, shared with current user * used to check if user is allowed to access current panorama * * @param $panoramaId * @return array * @throws Exception */

($panoramaId)

Source from the content-addressed store, hash-verified

254 * @throws Exception
255 */
256 public function getSharedPanorama($panoramaId) {
257 $sharedPanoramas = $this->getSharedItems(self::SHARE_ITEM_TYPE_PANORAMA);
258 if (in_array($panoramaId, array_column($sharedPanoramas, "id"))) {
259 $key = array_search($panoramaId, array_column($sharedPanoramas, 'id'));
260 return $sharedPanoramas[$key];
261 } else {
262 return [];
263 }
264 }
265
266 /**
267 * get metadata of a report, shared with current user as part of a panorama

Calls 1

getSharedItemsMethod · 0.95