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


PHP Mage_Adminhtml_Block_Template::_construct方法代码示例

本文整理汇总了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());
     }
 }
开发者ID:natxetee,项目名称:magento2,代码行数:7,代码来源:Detailed.php

示例2: _construct

 public function _construct()
 {
     parent::_construct();
     $this->setTemplate('attributemanager/index.phtml');
     // active le template
     $this->getAttributemanager();
 }
开发者ID:evinw,项目名称:project_bloom_magento,代码行数:7,代码来源:Attributemanager.php

示例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());
 }
开发者ID:HPTTeam,项目名称:hackathon,代码行数:7,代码来源:Balance.php

示例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');
 }
开发者ID:aram93,项目名称:mage-enhanced-admin-grids,代码行数:7,代码来源:Editor.php

示例5: _construct

 public function _construct()
 {
     parent::_construct();
     $this->setTemplate('helpdeskultimate/departments/stats.phtml');
     $this->setTitle($this->__("Departments Statistics"));
     $this->_prepareCollection();
 }
开发者ID:praxigento,项目名称:mage_app_prxgt_store,代码行数:7,代码来源:Stats.php

示例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');
 }
开发者ID:aram93,项目名称:mage-enhanced-admin-grids,代码行数:7,代码来源:Select.php

示例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));
 }
开发者ID:SalesOneGit,项目名称:s1_magento,代码行数:11,代码来源:Menu.php

示例8: _construct

 protected function _construct()
 {
     parent::_construct();
     if (Mage::helper('amorderattach')->isAllowedEdit()) {
         $this->setTemplate('amorderattach/js.phtml');
     }
 }
开发者ID:CE-Webmaster,项目名称:CE-Hub,代码行数:7,代码来源:Jsinit.php

示例9: _construct

 /**
  *
  */
 public function _construct()
 {
     parent::_construct();
     if (!$this->hasData('template')) {
         $this->setData('template', 'meanbee/cacheviewer/report.phtml');
     }
 }
开发者ID:eBusinessAtlantique,项目名称:Meanbee_CacheViewer,代码行数:10,代码来源:Report.php

示例10: _construct

 /**
  * Class constructor
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $action = Mage::app()->getFrontController()->getAction();
     if ($action) {
         $this->addBodyClass($action->getFullActionName('-'));
     }
 }
开发者ID:natxetee,项目名称:magento2,代码行数:12,代码来源:Page.php

示例11: _construct

 /**
  * Check for template Id in request
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $templateId = $this->getRequest()->getParam('template_id');
     if ($templateId) {
         $this->setTemplateId($templateId);
     }
 }
开发者ID:relue,项目名称:magento2,代码行数:12,代码来源:Edit.php

示例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'));
 }
开发者ID:cewolf2002,项目名称:magento,代码行数:9,代码来源:Customization.php

示例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'));
 }
开发者ID:aram93,项目名称:mage-enhanced-admin-grids,代码行数:9,代码来源:Select.php

示例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);
 }
开发者ID:protechhelp,项目名称:gamamba,代码行数:9,代码来源:Root.php

示例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();
 }
开发者ID:javik223,项目名称:Evron-Magento,代码行数:10,代码来源:Xreport.php


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