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

Method deleteByUser

lib/Service/PanoramaService.php:200–207  ·  view source on GitHub ↗

* get dataset by user * * @param string $userId * @return array|bool * @throws Exception */

(string $userId)

Source from the content-addressed store, hash-verified

198 * @throws Exception
199 */
200 public function deleteByUser(string $userId) {
201 $panoramas = $this->PanoramaMapper->indexByUser($userId);
202 foreach ($panoramas as $panorama) {
203 $this->ShareService->deleteSharesByItem(ShareService::SHARE_ITEM_TYPE_PANORAMA, $panorama['id']);
204 $this->setFavorite($panorama['id'], 'false');
205 }
206 return true;
207 }
208
209 /**
210 * get own reports which are marked as favorites

Callers

nothing calls this directly

Calls 3

setFavoriteMethod · 0.95
indexByUserMethod · 0.45
deleteSharesByItemMethod · 0.45

Tested by

no test coverage detected