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

Method providerRemoveByUser

lib/Service/DatasetService.php:315–324  ·  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

313 * @return bool
314 */
315 private function providerRemoveByUser(string $userId) {
316 if (self::$contextChatAvailable === null) {
317 self::$contextChatAvailable = class_exists('OCA\\ContextChat\\Public\\ContentManager');
318 }
319 if (self::$contextChatAvailable) {
320 $this->contextChatManager = \OC::$server->query('OCA\\Analytics\\ContextChat\\ContextChatManager');
321 $this->contextChatManager->removeContentByUser($userId);
322 }
323 return true;
324 }
325
326 /**
327 * Delete Dataset and all depending objects

Callers 1

deleteByUserMethod · 0.95

Calls 2

queryMethod · 0.80
removeContentByUserMethod · 0.80

Tested by

no test coverage detected