Exemple #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;
     }
 }
Exemple #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;
     }
 }