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

Method getSharedPanorama

lib/Service/ShareService.php:252–260  ·  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

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

Calls 1

getSharedItemsMethod · 0.95