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


PHP ModuleFrontController::__construct方法代碼示例

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


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

示例1: __construct

 public function __construct()
 {
     $this->auth = false;
     parent::__construct();
     $this->context = Context::getContext();
     include_once $this->module->getLocalPath() . 'stripejs.php';
 }
開發者ID:alexsegura,項目名稱:prestashop-stripejs,代碼行數:7,代碼來源:default.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->ssl = true;
     $this->display_column_left = false;
     $this->display_column_right = false;
 }
開發者ID:payneteasy,項目名稱:php-plugin-prestashop,代碼行數:7,代碼來源:startsale.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     if ($this->ajax) {
         $this->content_only = true;
     }
 }
開發者ID:Oldwo1f,項目名稱:yakaboutique,代碼行數:7,代碼來源:default.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $aResponse['error'] = false;
     $aResponse['message'] = '';
     if (isset($_POST['action'])) {
         $id_video = $_POST['idBox'];
         $ratting = $_POST['rate'];
         if (VideosRatting::checkRatting($id_video)) {
             $videosRatting = new VideosRatting();
             $videosRatting->add(array('id_video' => $id_video, 'ratting' => $ratting));
             $aResponse['error'] = FALSE;
             $aResponse['message'] = 'Your rate has been successfuly recorded. Thanks for your rate';
         } else {
             $aResponse['error'] = true;
             $aResponse['message'] = 'Your have rated for images';
         }
     } else {
         $aResponse['error'] = true;
         $aResponse['message'] = 'An error occured during the request. Please retry';
     }
     echo json_encode($aResponse);
     die;
 }
開發者ID:rongandat,項目名稱:vatfairfoot,代碼行數:25,代碼來源:ratting.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     // Hide columns
     $this->display_column_left = false;
     $this->display_column_right = false;
 }
開發者ID:Paguila,項目名稱:prestashop-webpay,代碼行數:7,代碼來源:validate.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     //include_once($this->module->getLocalPath().'WishList.php');
     include_once $this->module->getLocalPath() . 'simplecategory.php';
 }
開發者ID:zangles,項目名稱:lennyba,代碼行數:7,代碼來源:get.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $this->ssl = true;
     include_once $this->module->getLocalPath() . 'WishList.php';
 }
開發者ID:toufikadfab,項目名稱:PrestaShop-1.5,代碼行數:7,代碼來源:mywishlist.php

示例8: __construct

 public function __construct()
 {
     $this->display_column_left = false;
     $this->display_column_right = false;
     parent::__construct();
     $this->context = Context::getContext();
 }
開發者ID:powa,項目名稱:prestashop-extension,代碼行數:7,代碼來源:confirmation2.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     include_once dirname(__FILE__) . '/../../classes/LofBlock.php';
     include_once dirname(__FILE__) . '/../../classes/LofItem.php';
     include_once dirname(__FILE__) . '/../../lofadvancecustom.php';
 }
開發者ID:pacxs,項目名稱:pacxscom,代碼行數:8,代碼來源:popup.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->themeName = Context::getContext()->shop->getTheme();
     $this->img_path = _PS_ALL_THEMES_DIR_ . $this->themeName . '/img/modules/' . $this->_nameModule . '/';
     $this->img_url = __PS_BASE_URI__ . 'themes/' . $this->themeName . '/img/modules/' . $this->_nameModule . '/';
     include_once $this->module->getLocalPath() . $this->_nameModule . '.php';
 }
開發者ID:ahmedonee,項目名稱:morinella,代碼行數:8,代碼來源:preview.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     include_once $this->module->getLocalPath() . 'LoyaltyModule.php';
     include_once $this->module->getLocalPath() . 'LoyaltyStateModule.php';
     // Declare smarty function to render pagination link
     smartyRegisterFunction($this->context->smarty, 'function', 'summarypaginationlink', array('LoyaltyDefaultModuleFrontController', 'getSummaryPaginationLink'));
 }
開發者ID:jicheng17,項目名稱:vipinsg,代碼行數:9,代碼來源:default.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->context = Context::getContext();
     $columns = Context::getContext()->theme->hasColumns('index');
     $this->display_column_left = $columns['left_column'];
     $this->display_column_right = $columns['right_column'];
     include_once $this->module->getLocalPath() . 'iqitcontentcreator.php';
 }
開發者ID:evgrishin,項目名稱:se1614,代碼行數:9,代碼來源:Editor.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->pfConfig = Payfort_Fort_Config::getInstance();
     $this->pfHelper = Payfort_Fort_Helper::getInstance();
     $this->pfPayment = Payfort_Fort_Payment::getInstance();
     if (session_id() == '') {
         session_start();
     }
 }
開發者ID:payfort,項目名稱:prestashop-payfort,代碼行數:10,代碼來源:payment.php

示例14: __construct

 /**
  * @inheritdoc
  */
 public function __construct()
 {
     parent::__construct();
     if (($limit = Tools::getValue('limit')) !== false && !empty($limit)) {
         $this->limit = (int) $limit;
     }
     if (($offset = Tools::getValue('offset')) !== false && !empty($offset)) {
         $this->offset = (int) $offset;
     }
 }
開發者ID:silbersaiten,項目名稱:nostotagging,代碼行數:13,代碼來源:api.php

示例15: __construct

 public function __construct()
 {
     $this->controller_type = 'modulefront';
     $this->module = Module::getInstanceByName(Tools::getValue('module'));
     if (!$this->module->active) {
         Tools::redirect('index');
     }
     $this->page_name = 'module-' . $this->module->name . '-' . Dispatcher::getInstance()->getController();
     parent::__construct();
 }
開發者ID:paeddl,項目名稱:amzpayments-1,代碼行數:10,代碼來源:user_to_shop.php


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