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

Method deleteByUser

lib/Service/DatasetService.php:349–358  ·  view source on GitHub ↗

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

(string $userId)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 4

providerRemoveByUserMethod · 0.95
indexByUserMethod · 0.45
deleteMethod · 0.45
deleteByDatasetMethod · 0.45

Tested by

no test coverage detected