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


PHP WebModule::afterInstall方法代碼示例

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


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

示例1: afterInstall

 public function afterInstall()
 {
     Yii::app()->settings->set('news', SettingsNewsForm::defaultSettings());
     Yii::app()->database->import($this->id);
     Yii::app()->widgets->set('module', array('alias_wgt' => 'mod.news.blocks.latast.NewsLatastBlock', 'name' => 'Новости'));
     return parent::afterInstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:7,代碼來源:NewsModule.php

示例2: afterInstall

 public function afterInstall()
 {
     if (Yii::app()->hasModule('shop')) {
         return parent::afterInstall();
     } else {
         Yii::app()->controller->addFlashMessage('Ошибка, Модуль интернет-магазин не устрановлен.');
         return false;
     }
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:9,代碼來源:CompareModule.php

示例3: afterInstall

 public function afterInstall()
 {
     if (Yii::app()->hasModule('shop')) {
         Yii::app()->settings->set('yandexMarket', array('name' => 'Демо магазин', 'company' => 'Демо кампания', 'url' => 'http://demo-company.loc/', 'currency_id' => 3));
         return parent::afterInstall();
     } else {
         Yii::app()->controller->addFlashMessage('Ошибка, Модуль интернет-магазин не устрановлен.');
         return false;
     }
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:10,代碼來源:YandexMarketModule.php

示例4: afterUninstall

 public function afterUninstall()
 {
     Yii::app()->settings->clear($this->id);
     //Yii::app()->unintallComponent('cart');
     $db = Yii::app()->db;
     $tablesArray = array(Order::model()->tableName(), OrderHistory::model()->tableName(), OrderProduct::model()->tableName(), OrderStatus::model()->tableName(), OrderProductHistroy::model()->tableName(), ShopPaymentMethod::model()->tableName(), ShopPaymentMethodTranslate::model()->tableName(), ShopDeliveryMethod::model()->tableName(), ShopDeliveryMethodTranslate::model()->tableName(), ShopDeliveryPayment::model()->tableName(), ProductNotifications::model()->tableName());
     foreach ($tablesArray as $table) {
         $db->createCommand()->dropTable($table);
     }
     return parent::afterInstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:11,代碼來源:CartModule.php

示例5: afterInstall

 public function afterInstall()
 {
     if (Yii::app()->hasModule('shop')) {
         Yii::app()->settings->set('exchange1c', array('ip' => '127.0.0.1', 'password' => sha1(microtime())));
         Yii::app()->database->import($this->id);
         return parent::afterInstall();
     } else {
         Yii::app()->controller->addFlashMessage('Ошибка, Модуль интернет-магазин не устрановлен.');
         return false;
     }
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:11,代碼來源:Exchange1cModule.php

示例6: afterInstall

 public function afterInstall()
 {
     Yii::app()->settings->set('shop', SettingsShopForm::defaultSettings());
     Yii::app()->database->import($this->id);
     Yii::app()->widgets->set('system', array('alias_wgt' => 'mod.shop.blocks.popular.PopularBlock', 'name' => 'Поп товары'));
     Yii::app()->widgets->set('module', array('alias_wgt' => 'mod.shop.blocks.search.SearchWidget', 'name' => 'Поиск товаров'));
     CFileHelper::createDirectory(Yii::getPathOfAlias('webroot.uploads.product'), 0777);
     CFileHelper::createDirectory(Yii::getPathOfAlias('webroot.uploads.manufacturer'), 0777);
     CFileHelper::createDirectory(Yii::getPathOfAlias('webroot.uploads.categories'), 0777);
     Yii::app()->intallComponent('currency', 'mod.shop.components.CurrencyManager');
     return parent::afterInstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:12,代碼來源:ShopModule.php

示例7: afterInstall

 public function afterInstall()
 {
     Yii::app()->settings->set($this->id, SettingsCommentForm::defaultSettings());
     Yii::app()->database->import($this->id);
     return parent::afterInstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:6,代碼來源:CommentsModule.php

示例8: afterInstall

 public function afterInstall()
 {
     Yii::app()->database->import($this->id);
     Yii::app()->widgets->set('module', array('alias_wgt' => 'mod.delivery.widgets.subscribe.SubscribeWidget', 'name' => 'Подписатся на рассылку'));
     return parent::afterInstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:6,代碼來源:DeliveryModule.php

示例9: afterInstall

 public function afterInstall()
 {
     Yii::app()->database->import($this->id);
     return parent::afterInstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:5,代碼來源:PagesModule.php

示例10: afterInstall

 public function afterInstall()
 {
     Yii::app()->settings->set('stats', array('param' => 'param'));
     Yii::app()->database->import($this->id);
     return parent::afterInstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:6,代碼來源:StatsModule.php

示例11: afterInstall

 public function afterInstall()
 {
     return parent::afterInstall();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:4,代碼來源:SupportModule.php


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