本文整理汇总了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方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _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 . '_' . Mage::helper('megamenu')->getCurrentCategoryId()));
}
示例2: _construct
/**
* Internal constructor, that is called from real constructor
*
*/
protected function _construct()
{
parent::_construct();
/*
* In case template was passed through constructor
* we assign it to block's property _template
* Mainly for those cases when block created
* not via Mage_Core_Model_Layout::addBlock()
*/
if ($this->hasData('template')) {
$this->setTemplate($this->getData('template'));
}
}
示例3: _construct
/**
* _construct
*
* @param array $attributes
*/
public function _construct($attributes = array())
{
parent::_construct($attributes);
$this->_prepareOptions();
}
示例4: _construct
protected function _construct()
{
parent::_construct();
}
示例5: _construct
protected function _construct()
{
parent::_construct();
$this->setData('cache_lifetime', 86400);
}
示例6: _construct
protected function _construct()
{
$this->_serializer = new Varien_Object();
parent::_construct();
}
示例7: _construct
protected function _construct()
{
$this->setTemplate('bradesco/standard/redirect.phtml');
parent::_construct();
}