本文整理汇总了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();
}
示例2: afterUninstall
public function afterUninstall()
{
Yii::app()->settings->clear('exchange1c');
$db = Yii::app()->db;
$db->createCommand()->dropTable('{{exchange1c}}');
return parent::afterUninstall();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例9: afterUninstall
public function afterUninstall()
{
Yii::app()->settings->clear($this->id);
Yii::app()->db->createCommand()->dropTable(Comments::model()->tableName());
return parent::afterUninstall();
}
示例10: afterUninstall
public function afterUninstall()
{
Yii::app()->settings->clear('yandexMarket');
return parent::afterUninstall();
}
示例11: afterUninstall
public function afterUninstall()
{
Yii::app()->db->createCommand()->dropTable('delivery');
//Yii::app()->unsetWidget('mod.delivery.widgets.delivery.DeliveryWidget');
return parent::afterUninstall();
}
示例12: afterUninstall
public function afterUninstall()
{
Yii::app()->settings->clear('stats');
Yii::app()->db->createCommand()->dropTable(StatsSurf::model()->tableName());
return parent::afterUninstall();
}