当前位置: 首页>>代码示例>>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;未经允许,请勿转载。