Esempio n. 1
0
 /**
  * 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;
     }
 }
Esempio n. 2
0
 /**
  * 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;
     }
 }