Пример #1
0
 /**
  * @return string $statusMessage
  */
 public static function uninstall()
 {
     try {
         $install = new Install();
         self::getEventManager()->trigger('uninstall.pre', null, array("installer" => $install));
         // remove predefined document types
         //$install->removeDocTypes();
         // remove static routes
         $install->removeStaticRoutes();
         // remove custom view
         $install->removeCustomView();
         // remove object folder with all childs
         $install->removeFolders();
         // remove classes
         $install->removeClassmap();
         //$install->removeClass("CoreShopCartRule");
         $install->removeClass('CoreShopProduct');
         $install->removeClass('CoreShopCategory');
         $install->removeClass('CoreShopCart');
         $install->removeClass('CoreShopCartItem');
         $install->removeClass("CoreShopUser");
         $install->removeClass("CoreShopOrder");
         $install->removeClass("CoreShopOrderState");
         $install->removeClass("CoreShopPayment");
         $install->removeClass("CoreShopOrderItem");
         $install->removeFieldcollection('CoreShopUserAddress');
         $install->removeImageThumbnails();
         $install->removeConfig();
         self::getEventManager()->trigger('uninstall.post', null, array("installer" => $install));
         return self::getTranslate()->_('coreshop_uninstalled_successfully');
     } catch (Exception $e) {
         \Logger::crit($e);
         return self::getTranslate()->_('coreshop_uninstall_failed');
     }
 }
Пример #2
0
 /**
  * Uninstall Sofortueberweisung CoreShop addon.
  *
  * @param Installer $installer
  */
 public function uninstall(Installer $installer)
 {
     $installer->removeObjectBrick('CoreShopPaymentSofortueberweisung');
 }
Пример #3
0
 /**
  * Uninstall Omnipay CoreShop addon
  *
  * @param Installer $installer
  */
 public function uninstall(Installer $installer)
 {
     $installer->removeObjectBrick("CoreShopPaymentOmnipay");
     $installer->removeStaticRoutes(PIMCORE_PLUGINS_PATH . "/Omnipay/install/routes.xml");
 }
Пример #4
0
 /**
  * Uninstall Paypal CoreShop addon
  *
  * @param Installer $installer
  */
 public function uninstall(Installer $installer)
 {
     $installer->removeObjectBrick("CoreShopPaymentPaypal");
 }