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

Method getSharedReport

lib/Service/ShareService.php:238–246  ·  view source on GitHub ↗

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

($reportId)

Source from the content-addressed store, hash-verified

236 * @throws Exception
237 */
238 public function getSharedReport($reportId) {
239 $sharedReport = $this->getSharedItems(self::SHARE_ITEM_TYPE_REPORT);
240 if (in_array($reportId, array_column($sharedReport, "id"))) {
241 $key = array_search($reportId, array_column($sharedReport, 'id'));
242 return $sharedReport[$key];
243 } else {
244 return [];
245 }
246 }
247
248 /**
249 * get metadata of a panorama, shared with current user

Calls 1

getSharedItemsMethod · 0.95