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


PHP Mage_Core_Block_Abstract::__construct方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     /*$this->_controller = 'adminhtml_tips';
       $this->_blockGroup = 'aitcg';
       $this->_headerText = Mage::helper('aitcg')->__('Easy Tips');
       $this->_addButtonLabel = Mage::helper('aitcg')->__('Add Color Set');*/
     $this->setTemplate('aitcg/tips/cgfile.phtml');
     parent::__construct();
 }
开发者ID:Eximagen,项目名称:BulletMagento,代码行数:9,代码来源:Tips.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     if (!Mage::getSingleton('customer/session')->getCustomer() || !Mage::getSingleton('customer/session')->getCustomer()->getZcorporateapprover()) {
         // should never have come here
         #Mage::Log("returning link block without creation");
         return;
     }
 }
开发者ID:shebin512,项目名称:Magento_Zoff,代码行数:9,代码来源:Link.php

示例3: __construct

 public function __construct()
 {
     //$this->setPromoId();
     parent::__construct();
 }
开发者ID:brentwpeterson,项目名称:magento_cart_promo,代码行数:5,代码来源:Promo.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setCriteoConversionId(Mage::getStoreConfig('criteo/criteo/criteo_conversion_id'));
 }
开发者ID:Hospeed,项目名称:Inovarti_Criteo,代码行数:5,代码来源:Block.php

示例5: __construct

 /**
  * @param Mage_Core_Controller_Request_Http $request
  * @param Mage_Core_Model_Layout $layout
  * @param Mage_Core_Model_Event_Manager $eventManager
  * @param Mage_Core_Model_Url $urlBuilder
  * @param Mage_Core_Model_Translate $translator
  * @param Mage_Core_Model_Cache $cache
  * @param Mage_Core_Model_Design_Package $designPackage
  * @param Mage_Core_Model_Session $session
  * @param Mage_Core_Model_Store_Config $storeConfig
  * @param Mage_Core_Controller_Varien_Front $frontController
  * @param Mage_Core_Model_Factory_Helper $helperFactory
  * @param Magento_Filesystem $filesystem
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(Mage_Core_Controller_Request_Http $request, Mage_Core_Model_Layout $layout, Mage_Core_Model_Event_Manager $eventManager, Mage_Core_Model_Url $urlBuilder, Mage_Core_Model_Translate $translator, Mage_Core_Model_Cache $cache, Mage_Core_Model_Design_Package $designPackage, Mage_Core_Model_Session $session, Mage_Core_Model_Store_Config $storeConfig, Mage_Core_Controller_Varien_Front $frontController, Mage_Core_Model_Factory_Helper $helperFactory, Magento_Filesystem $filesystem, array $data = array())
 {
     parent::__construct($request, $layout, $eventManager, $urlBuilder, $translator, $cache, $designPackage, $session, $storeConfig, $frontController, $helperFactory, $data);
     $this->_filesystem = $filesystem;
 }
开发者ID:natxetee,项目名称:magento2,代码行数:22,代码来源:Template.php

示例6: __construct

 /**
  * @param array May contain:
  *              - tax_collector => EbayEnterprise_Tax_Model_Collector
  */
 public function __construct(array $args = [])
 {
     list($this->taxCollector, $this->helper) = $this->checkTypes($this->nullCoalesce($args, 'tax_collector', Mage::getModel('ebayenterprise_tax/collector')), $this->nullCoalesce($args, 'helper', Mage::helper('ebayenterprise_tax')));
     parent::__construct($args);
 }
开发者ID:danlins,项目名称:magento-retail-order-management,代码行数:9,代码来源:Tax.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->setEnabled(Mage::getStoreConfig('modalebit/modalebit/enabled'));
     $this->setEmpresa(Mage::getStoreConfig('modalebit/modalebit/empresa'));
 }
开发者ID:Hospeed,项目名称:Inovarti_Modalebit,代码行数:6,代码来源:Block.php

示例8: __construct

 public function __construct()
 {
     Mage_Core_Block_Abstract::__construct();
 }
开发者ID:xiaoguizhidao,项目名称:devfashion,代码行数:4,代码来源:Abstract.php


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