public function process() { $transport = $this->package->getTransport(); $this->modx->log(modX::LOG_LEVEL_INFO, $this->modx->lexicon('package_uninstall_info_prep')); /* uninstall package */ $options = array(xPDOTransport::PREEXISTING_MODE => $this->getProperty('preexisting_mode')); if ($this->package->uninstall($options) == false) { return $this->failure(sprintf($this->modx->lexicon('package_err_uninstall'), $this->package->getPrimaryKey())); } $this->modx->log(modX::LOG_LEVEL_WARN, $this->modx->lexicon('package_uninstall_info_success', array('signature' => $this->package->get('signature')))); sleep(2); $this->modx->log(modX::LOG_LEVEL_INFO, 'COMPLETED'); $this->clearCache(); $this->logManagerAction(); return $this->success(); }