* get dataset by user * * @param string $userId * @return bool * @throws Exception */
(string $userId)
| 347 | * @throws Exception |
| 348 | */ |
| 349 | public function deleteByUser(string $userId) { |
| 350 | $datasets = $this->DatasetMapper->indexByUser($userId); |
| 351 | foreach ($datasets as $dataset) { |
| 352 | $this->DatasetMapper->delete($dataset['id']); |
| 353 | $this->DataloadMapper->deleteByDataset($dataset['id']); |
| 354 | $this->StorageMapper->deleteByDataset($dataset['id']); |
| 355 | } |
| 356 | $this->providerRemoveByUser($userId); |
| 357 | return true; |
| 358 | } |
| 359 | |
| 360 | } |
nothing calls this directly
no test coverage detected