本文整理汇总了PHP中Mage_Adminhtml_Block_Template::_construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Template::_construct方法的具体用法?PHP Mage_Adminhtml_Block_Template::_construct怎么用?PHP Mage_Adminhtml_Block_Template::_construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Template
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Template::_construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _construct
protected function _construct()
{
parent::_construct();
if (Mage::registry('review_data')) {
$this->setReviewId(Mage::registry('review_data')->getReviewId());
}
}
示例2: _construct
public function _construct()
{
parent::_construct();
$this->setTemplate('attributemanager/index.phtml');
// active le template
$this->getAttributemanager();
}
示例3: _construct
protected function _construct()
{
parent::_construct();
$this->setData('customer', Mage::registry('current_customer'));
$this->setData('website', $this->getCustomer()->getStore()->getWebsite());
$this->addData(Mage::getModel('points/summary')->loadByCustomer($this->getCustomer())->getData());
}
示例4: _construct
protected function _construct()
{
parent::_construct();
$this->_instanceId = ++self::$_instancesNumber;
$this->setId(Mage::helper('core')->uniqHash('customGridEditor_' . $this->_instanceId));
$this->setTemplate('bl/customgrid/widget/grid/columns/editor.phtml');
}
示例5: _construct
public function _construct()
{
parent::_construct();
$this->setTemplate('helpdeskultimate/departments/stats.phtml');
$this->setTitle($this->__("Departments Statistics"));
$this->_prepareCollection();
}
示例6: _construct
public function _construct()
{
parent::_construct();
$this->_instanceId = ++self::$_instanceNumber;
$this->setId(Mage::helper('core')->uniqHash('blcgCollectionRendererSelect' . $this->_instanceId));
$this->setTemplate('bl/customgrid/column/renderer/collection/select.phtml');
}
示例7: _construct
/**
* Initialize template and cache settings
*
*/
protected function _construct()
{
parent::_construct();
$this->setTemplate('page/menu.phtml');
$this->_url = Mage::getModel('adminhtml/url');
$this->setCacheTags(array(self::CACHE_TAGS));
}
示例8: _construct
protected function _construct()
{
parent::_construct();
if (Mage::helper('amorderattach')->isAllowedEdit()) {
$this->setTemplate('amorderattach/js.phtml');
}
}
示例9: _construct
/**
*
*/
public function _construct()
{
parent::_construct();
if (!$this->hasData('template')) {
$this->setData('template', 'meanbee/cacheviewer/report.phtml');
}
}
示例10: _construct
/**
* Class constructor
*
*/
protected function _construct()
{
parent::_construct();
$action = Mage::app()->getFrontController()->getAction();
if ($action) {
$this->addBodyClass($action->getFullActionName('-'));
}
}
示例11: _construct
/**
* Check for template Id in request
*
*/
protected function _construct()
{
parent::_construct();
$templateId = $this->getRequest()->getParam('template_id');
if ($templateId) {
$this->setTemplateId($templateId);
}
}
示例12: _construct
protected function _construct()
{
$this->model = Mage::getModel('tawkwidget/widget');
$this->model->load(0);
$this->widgets = Mage::getModel('tawkwidget/widget')->getCollection();
parent::_construct();
$this->setTemplate('tawk/customization.phtml');
$this->setFormAction(Mage::getUrl('*/*/savewidget'));
}
示例13: _construct
public function _construct()
{
parent::_construct();
$this->setTemplate('bl/customgrid/store/select.phtml');
$this->setUseConfirm(true);
$this->setUseAjax(true);
$this->setUseGridLabel($this->__('Use Grid Store View'));
$this->setDefaultStoreName($this->__('Default Values'));
}
示例14: _construct
protected function _construct()
{
$this->setWidth(self::DEFAULT_WIDTH);
$this->setHeight(self::DEFAULT_HEIGHT);
$this->setSuccessMessage($this->__("Item has been successfully saved."));
$this->setParamKey('entity_id');
parent::_construct();
$this->setTemplate(self::TEMPLATE_PATH);
}
示例15: __construct
public function __construct($till_id = 0)
{
$this->setTemplate('webpos/webpos/reports/xreport.phtml');
$this->_till_id = $till_id;
$till = Mage::getModel('webpos/session')->getTill();
if ($till->getId()) {
$this->_till_id = $till->getTillId();
}
parent::_construct();
}