/** * Perform a cleanup action */ protected function _cleanup() { switch ($this->_cleanupAction) { case self::CLEANUP_UNINSTALL: $this->_db->cleanup(); $this->_cleanupFilesystem(); break; case self::CLEANUP_RESTORE_DB: $this->_db->restoreBackup(self::DB_BACKUP_NAME); break; } }
/** * Perform the application cleanup */ protected function _cleanup() { $this->_db->cleanup(); $this->_cleanupFilesystem(); }
/** * Perform a cleanup action */ protected function _cleanup() { switch ($this->_cleanupAction) { case self::CLEANUP_UNINSTALL: if (!$this->_db->cleanup()) { throw new Magento_Exception("Database cleanup failed."); } $this->_cleanupFilesystem(); break; case self::CLEANUP_RESTORE_DB: $this->_db->restoreBackup(self::DB_BACKUP_NAME); break; } }