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

Method providerRemove

lib/Service/DatasetService.php:342–351  ·  view source on GitHub ↗

* Remove dataset from context chat * * @NoAdminRequired * @param int $datasetId * @return bool */

(int $datasetId)

Source from the content-addressed store, hash-verified

340 * @return bool
341 */
342 private function providerRemove(int $datasetId) {
343 if (self::$contextChatAvailable === null) {
344 self::$contextChatAvailable = class_exists('OCA\\ContextChat\\Public\\ContentManager');
345 }
346 if (self::$contextChatAvailable) {
347 $this->contextChatManager = \OC::$server->query('OCA\\Analytics\\ContextChat\\ContextChatManager');
348 $this->contextChatManager->removeContentByDataset($datasetId);
349 }
350 return true;
351 }
352
353 /**
354 * Remove user from context chat

Callers 2

updateMethod · 0.95
deleteMethod · 0.95

Calls 2

queryMethod · 0.45

Tested by

no test coverage detected