当前位置: 首页>>代码示例>>PHP>>正文


PHP Mage_Core_Block_Template::_construct方法代码示例

本文整理汇总了PHP中Mage_Core_Block_Template::_construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Block_Template::_construct方法的具体用法?PHP Mage_Core_Block_Template::_construct怎么用?PHP Mage_Core_Block_Template::_construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Core_Block_Template的用法示例。


在下文中一共展示了Mage_Core_Block_Template::_construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _construct

 protected function _construct()
 {
     if ($this->getConfig('enabled') != 1) {
         return false;
     }
     parent::_construct();
 }
开发者ID:HPTTeam,项目名称:hackathon,代码行数:7,代码来源:Bannerfraction.php

示例2: _construct

 protected function _construct()
 {
     $this->setTemplate('arioem/part/selector.phtml');
     // here we need to let Magento independent ARI API gateway know what's the current customer cost
     Mage::getSingleton('customer/session')->unsCustomerCostPercent()->setCustomerCostPercent(Mage::helper('arioem')->getCustomerCostPercent());
     return parent::_construct();
 }
开发者ID:rcclaudrey,项目名称:dev,代码行数:7,代码来源:Selector.php

示例3: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setData('show_amounts', true);
     $this->setData('use_container', true);
     $this->setTemplate('page/html/pager.phtml');
 }
开发者ID:hientruong90,项目名称:ee_14_installer,代码行数:7,代码来源:Pager.php

示例4: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->clientGoogle = Mage::getSingleton('sociallogin/google_client');
     $this->clientFacebook = Mage::getSingleton('sociallogin/facebook_client');
     $this->clientTwitter = Mage::getSingleton('sociallogin/twitter_client');
     $this->clientLinkedin = Mage::getSingleton('sociallogin/linkedin_client');
     if (!$this->_googleEnabled() && !$this->_facebookEnabled() && !$this->_twitterEnabled() && !$this->_linkedinEnabled()) {
         return;
     }
     if ($this->_googleEnabled()) {
         $this->numEnabled++;
     }
     if ($this->_facebookEnabled()) {
         $this->numEnabled++;
     }
     if ($this->_twitterEnabled()) {
         $this->numEnabled++;
     }
     if ($this->_linkedinEnabled()) {
         $this->numEnabled++;
     }
     Mage::register('ced_sociallogin_button_text', $this->__('Login'));
     $this->setTemplate('ced/sociallogin/checkout.phtml');
 }
开发者ID:Aravindumasankar,项目名称:bbmage,代码行数:25,代码来源:Checkout.php

示例5: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setHelper();
     $this->setUniqueId();
     $this->setTemplate('emerchantpay/redirect/checkout.phtml');
 }
开发者ID:snehamalvankar,项目名称:magento-ce-emp-plugin,代码行数:7,代码来源:Checkout.php

示例6: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->_controller = 'customer';
     $this->_blockGroup = 'rewards';
     $this->setTemplate('rewards/customer/transfers/reference.phtml');
 }
开发者ID:rajarshc,项目名称:Rooja,代码行数:7,代码来源:Reference.php

示例7: _construct

 public function _construct()
 {
     parent::_construct();
     $this->setTemplate('rma/return/history.phtml');
     $returns = Mage::getResourceModel('enterprise_rma/rma_grid_collection')->addFieldToSelect('*')->addFieldToFilter('customer_id', Mage::getSingleton('customer/session')->getCustomer()->getId())->setOrder('date_requested', 'desc');
     $this->setReturns($returns);
 }
开发者ID:hientruong90,项目名称:ee_14_installer,代码行数:7,代码来源:History.php

示例8: _construct

 protected function _construct()
 {
     $path = 'magicproduct/identifier/' . $this->getIdentifier();
     $data = unserialize(Mage::getStoreConfig($path));
     $this->addData($data);
     parent::_construct();
 }
开发者ID:uibar,项目名称:laviniailies2,代码行数:7,代码来源:Magicproduct.php

示例9: _construct

 protected function _construct()
 {
     parent::_construct();
     $account = Mage::getSingleton('affiliateplus/session')->getAccount();
     $collection = Mage::getResourceModel('affiliatepluswidget/widget_collection')->addFieldToFilter('account_id', $account->getId());
     $this->setCollection($collection);
 }
开发者ID:bigtailbear14,项目名称:rosstheme,代码行数:7,代码来源:Magestore_Affiliatepluswidget_Block_List.php

示例10: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->addData(array('cache_lifetime' => false));
     // 12 hours
     $this->addCacheTag(array(Mage_Catalog_Model_Category::CACHE_TAG, Mage_Catalog_Model_Category::CACHE_TAG . '_' . $this->getParentCategoryId()));
 }
开发者ID:DevertNet,项目名称:MageProfis_MegaMenu,代码行数:7,代码来源:Menu.php

示例11: _construct

 protected function _construct()
 {
     parent::_construct();
     if ($this->getRequest()->getControllerName() == 'quoteproducts') {
         $this->_edcType = 'quote_products';
     }
 }
开发者ID:dotmailer,项目名称:dotmailer-magento-extension,代码行数:7,代码来源:Edc.php

示例12: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('rewards/product/predictpoints.phtml');
     //@nelkaake Wednesday March 10, 2010 10:04:42 PM : New caching functionality
     $this->setCacheLifetime(86400);
 }
开发者ID:rajarshc,项目名称:Rooja,代码行数:7,代码来源:Predictpoints.php

示例13: _construct

 /**
  * initialize
  *
  * @access public
  * @author Ultimate Module Creator
  */
 public function _construct()
 {
     parent::_construct();
     $posts = Mage::getResourceModel('tech_blog/post_collection')->addStoreFilter(Mage::app()->getStore())->addFieldToFilter('status', 1);
     $posts->setOrder('title', 'asc');
     $this->setPosts($posts);
 }
开发者ID:k0bix,项目名称:Tech_Blog,代码行数:13,代码来源:List.php

示例14: _construct

 protected function _construct()
 {
     $type = $this->getRequest()->getParam('type');
     $this->file = Mage::getModel('devel/file_' . $type, $this->getRequest()->getParam($type));
     parent::_construct();
     $this->setTemplate('devel/filesystem/edit.phtml');
 }
开发者ID:votanlean,项目名称:Magento-Pruebas,代码行数:7,代码来源:Edit.php

示例15: _construct

 protected function _construct()
 {
     parent::_construct();
     $accountId = Mage::getSingleton('affiliateplus/session')->getAccount()->getId();
     $allTierIds = Mage::helper('affiliatepluslevel')->getAllTierIds($accountId, Mage::app()->getStore()->getId());
     if (count($allTierIds)) {
         $allTierIdsString = implode(',', $allTierIds);
     } else {
         $allTierIdsString = 0;
     }
     $tierTable = Mage::getModel('core/resource')->getTableName('affiliatepluslevel_tier');
     $collection = Mage::getModel('affiliateplus/account')->getCollection()->setStoreId(Mage::app()->getStore()->getId())->setOrder('created_time', 'DESC');
     $collection->getSelect()->joinLeft($tierTable, "{$tierTable}.tier_id = main_table.account_id", array('level' => 'level', 'toptier_id' => 'toptier_id'))->where("account_id IN ({$allTierIdsString})");
     $request = $this->getRequest();
     if ($request->getParam('joined') == 'desc') {
         $collection->getSelect()->order('created_time DESC');
     } elseif ($request->getParam('joined') == 'asc') {
         $collection->getSelect()->order('created_time ASC');
     } elseif ($request->getParam('level') == 'desc') {
         $collection->getSelect()->order('level DESC');
     } elseif ($request->getParam('level') == 'asc') {
         $collection->getSelect()->order('level ASC');
     } else {
         $collection->getSelect()->order('account_id DESC');
     }
     $this->setCollection($collection);
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:27,代码来源:Tiers.php


注:本文中的Mage_Core_Block_Template::_construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。