本文整理汇总了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();
}
示例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;
}
}
示例3: __construct
public function __construct()
{
//$this->setPromoId();
parent::__construct();
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->setCriteoConversionId(Mage::getStoreConfig('criteo/criteo/criteo_conversion_id'));
}
示例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;
}
示例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);
}
示例7: __construct
public function __construct()
{
parent::__construct();
$this->setEnabled(Mage::getStoreConfig('modalebit/modalebit/enabled'));
$this->setEmpresa(Mage::getStoreConfig('modalebit/modalebit/empresa'));
}
示例8: __construct
public function __construct()
{
Mage_Core_Block_Abstract::__construct();
}