當前位置: 首頁>>代碼示例>>PHP>>正文


PHP WebModule::afterUninstall方法代碼示例

本文整理匯總了PHP中WebModule::afterUninstall方法的典型用法代碼示例。如果您正苦於以下問題:PHP WebModule::afterUninstall方法的具體用法?PHP WebModule::afterUninstall怎麽用?PHP WebModule::afterUninstall使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在WebModule的用法示例。


在下文中一共展示了WebModule::afterUninstall方法的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: afterUninstall

 public function afterUninstall()
 {
     //Удаляем таблицу модуля
     Yii::app()->db->createCommand()->dropTable(Page::model()->tableName());
     Yii::app()->db->createCommand()->dropTable(PageTranslate::model()->tableName());
     return parent::afterUninstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:7,代碼來源:PagesModule.php

示例2: afterUninstall

 public function afterUninstall()
 {
     Yii::app()->settings->clear('exchange1c');
     $db = Yii::app()->db;
     $db->createCommand()->dropTable('{{exchange1c}}');
     return parent::afterUninstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:7,代碼來源:Exchange1cModule.php

示例3: afterUninstall

 public function afterUninstall()
 {
     //Удаляем таблицу модуля
     Yii::app()->settings->clear('news');
     Yii::app()->db->createCommand()->dropTable(News::model()->tableName());
     Yii::app()->db->createCommand()->dropTable(NewsTranslate::model()->tableName());
     return parent::afterUninstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:8,代碼來源:NewsModule.php

示例4: afterUninstall

 public function afterUninstall()
 {
     $db = Yii::app()->db;
     $tablesArray = array(Wishlist::model()->tableName(), WishlistProducts::model()->tableName());
     foreach ($tablesArray as $table) {
         $db->createCommand()->dropTable($table);
     }
     return parent::afterUninstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:9,代碼來源:WishlistModule.php

示例5: afterUninstall

 public function afterUninstall()
 {
     Yii::app()->settings->clear('contacts');
     $db = Yii::app()->db;
     $db->createCommand()->dropTable(ContactsMaps::model()->tableName());
     $db->createCommand()->dropTable(ContactsMarkers::model()->tableName());
     $db->createCommand()->dropTable(ContactsRouter::model()->tableName());
     $db->createCommand()->dropTable(ContactsRouterTranslate::model()->tableName());
     return parent::afterUninstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:10,代碼來源:ContactsModule.php

示例6: afterUninstall

 public function afterUninstall()
 {
     $db = Yii::app()->db;
     $tablesArray = array(ShopDiscount::model()->tableName(), $db->tablePrefix . 'shop_discount_category', $db->tablePrefix . 'shop_discount_manufacturer');
     foreach ($tablesArray as $table) {
         $db->createCommand()->dropTable($table);
     }
     GridColumns::model()->deleteAll("grid_id='shopdiscount-grid'");
     return parent::afterUninstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:10,代碼來源:DiscountsModule.php

示例7: afterUninstall

 public function afterUninstall()
 {
     Yii::app()->settings->clear($this->id);
     $db = Yii::app()->db;
     $tablesArray = array(PollChoice::model()->tableName(), PollVote::model()->tableName(), Poll::model()->tableName());
     foreach ($tablesArray as $table) {
         $db->createCommand()->truncateTable($table);
         $db->createCommand()->dropTable($table);
     }
     return parent::afterUninstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:11,代碼來源:PollModule.php

示例8: afterUninstall

 public function afterUninstall()
 {
     Yii::app()->settings->clear('shop');
     Yii::app()->unintallComponent('currency');
     $db = Yii::app()->db;
     $tablesArray = array(ShopTypeAttribute::model()->tableName(), ShopAttribute::model()->tableName(), ShopAttributeOption::model()->tableName(), ShopAttributeOptionTranslate::model()->tableName(), ShopAttributeTranslate::model()->tableName(), ShopCategory::model()->tableName(), ShopCategoryTranslate::model()->tableName(), ShopCurrency::model()->tableName(), ShopManufacturer::model()->tableName(), ShopManufacturerTranslate::model()->tableName(), ShopProduct::model()->tableName(), ShopProductCategoryRef::model()->tableName(), ShopProductImage::model()->tableName(), ShopProductTranslate::model()->tableName(), ShopProductType::model()->tableName(), ShopProductVariant::model()->tableName(), ShopRelatedProduct::model()->tableName(), ShopSuppliers::model()->tableName(), $db->tablePrefix . 'shop_product_attribute_eav', $db->tablePrefix . 'shop_product_configurable_attributes', $db->tablePrefix . 'shop_product_configurations');
     foreach ($tablesArray as $table) {
         $db->createCommand()->dropTable($table);
     }
     CFileHelper::removeDirectory(Yii::getPathOfAlias('webroot.uploads.product'), array('traverseSymlinks' => true));
     CFileHelper::removeDirectory(Yii::getPathOfAlias('webroot.uploads.categories'), array('traverseSymlinks' => true));
     CFileHelper::removeDirectory(Yii::getPathOfAlias('webroot.uploads.manufacturer'), array('traverseSymlinks' => true));
     return parent::afterUninstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:14,代碼來源:ShopModule.php

示例9: afterUninstall

 public function afterUninstall()
 {
     Yii::app()->settings->clear($this->id);
     Yii::app()->db->createCommand()->dropTable(Comments::model()->tableName());
     return parent::afterUninstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:6,代碼來源:CommentsModule.php

示例10: afterUninstall

 public function afterUninstall()
 {
     Yii::app()->settings->clear('yandexMarket');
     return parent::afterUninstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:5,代碼來源:YandexMarketModule.php

示例11: afterUninstall

 public function afterUninstall()
 {
     Yii::app()->db->createCommand()->dropTable('delivery');
     //Yii::app()->unsetWidget('mod.delivery.widgets.delivery.DeliveryWidget');
     return parent::afterUninstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:6,代碼來源:DeliveryModule.php

示例12: afterUninstall

 public function afterUninstall()
 {
     Yii::app()->settings->clear('stats');
     Yii::app()->db->createCommand()->dropTable(StatsSurf::model()->tableName());
     return parent::afterUninstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:6,代碼來源:StatsModule.php


注:本文中的WebModule::afterUninstall方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。