public function doUninstallAction($params) { $result = false; if (strlen($params['name'])) { if (!isset($params['function'])) { $params['function'] = ''; } $xm = new \Innomatic\Process\Hook($this->rootda, $this->appname, $params['function']); if ($xm->RemoveEvent($params['event'])) { $result = true; } else { $this->mLog->logEvent('innomatic.hookcomponent.hookcomponent.douninstallaction', 'In application ' . $this->appname . ', component ' . $params['name'] . ': Unable to remove hookevent', \Innomatic\Logging\Logger::ERROR); } } else { $this->mLog->logEvent('innomatic.hookcomponent.hookcomponent.douninstallaction', 'In application ' . $this->appname . ', component ' . $params['name'] . ': Empty hook nameevent', \Innomatic\Logging\Logger::ERROR); } return $result; }