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

Method providerRemove

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

295 * @return bool
296 */
297 private function providerRemove(int $datasetId) {
298 if (self::$contextChatAvailable === null) {
299 self::$contextChatAvailable = class_exists('OCA\\ContextChat\\Public\\ContentManager');
300 }
301 if (self::$contextChatAvailable) {
302 $this->contextChatManager = \OC::$server->query('OCA\\Analytics\\ContextChat\\ContextChatManager');
303 $this->contextChatManager->removeContentByDataset($datasetId);
304 }
305 return true;
306 }
307
308 /**
309 * Remove user from context chat

Callers 2

updateMethod · 0.95
deleteMethod · 0.95

Calls 2

queryMethod · 0.80

Tested by

no test coverage detected