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

Method providerRemoveByUser

lib/Service/DatasetService.php:360–369  ·  view source on GitHub ↗

* Remove user from context chat * * @NoAdminRequired * @param string $userId * @return bool */

(string $userId)

Source from the content-addressed store, hash-verified

358 * @return bool
359 */
360 private function providerRemoveByUser(string $userId) {
361 if (self::$contextChatAvailable === null) {
362 self::$contextChatAvailable = class_exists('OCA\\ContextChat\\Public\\ContentManager');
363 }
364 if (self::$contextChatAvailable) {
365 $this->contextChatManager = \OC::$server->query('OCA\\Analytics\\ContextChat\\ContextChatManager');
366 $this->contextChatManager->removeContentByUser($userId);
367 }
368 return true;
369 }
370
371 /**
372 * Delete Dataset and all depending objects

Callers 1

deleteByUserMethod · 0.95

Calls 2

removeContentByUserMethod · 0.80
queryMethod · 0.45

Tested by

no test coverage detected