* get dataset by user * * @param string $userId * @return array|bool * @throws Exception */
(string $userId)
| 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 |
nothing calls this directly
no test coverage detected