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


PHP Mage_Adminhtml_Block_Widget_Container::_construct方法代码示例

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


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

示例1: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->_addButton('back', array('label' => Mage::helper('aoe_profiler')->__('Back'), 'onclick' => 'setLocation(\'' . $this->getBackUrl() . '\')', 'class' => 'back'), -1);
     if ($this->getStack()->getId()) {
         $this->_addButton('delete', array('label' => Mage::helper('aoe_profiler')->__('Delete'), 'class' => 'delete', 'onclick' => 'deleteConfirm(\'' . Mage::helper('aoe_profiler')->__('Are you sure you want to do this?') . '\', \'' . $this->getDeleteUrl() . '\')'));
     }
 }
开发者ID:unifiedarts,项目名称:Aoe_Profiler,代码行数:8,代码来源:View.php

示例2: _construct

 /**
  * Block construction
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_headerText = $this->helper('Mage_Cms_Helper_Data')->__('Media Storage');
     $this->_removeButton('back')->_removeButton('edit');
     $this->_addButton('newfolder', array('class' => 'save', 'label' => $this->helper('Mage_Cms_Helper_Data')->__('Create Folder...'), 'type' => 'button', 'onclick' => 'MediabrowserInstance.newFolder();'));
     $this->_addButton('delete_folder', array('class' => 'delete no-display', 'label' => $this->helper('Mage_Cms_Helper_Data')->__('Delete Folder'), 'type' => 'button', 'onclick' => 'MediabrowserInstance.deleteFolder();', 'id' => 'button_delete_folder'));
     $this->_addButton('delete_files', array('class' => 'delete no-display', 'label' => $this->helper('Mage_Cms_Helper_Data')->__('Delete File'), 'type' => 'button', 'onclick' => 'MediabrowserInstance.deleteFiles();', 'id' => 'button_delete_files'));
     $this->_addButton('insert_files', array('class' => 'save no-display', 'label' => $this->helper('Mage_Cms_Helper_Data')->__('Insert File'), 'type' => 'button', 'onclick' => 'MediabrowserInstance.insert();', 'id' => 'button_insert_files'));
 }
开发者ID:natxetee,项目名称:magento2,代码行数:13,代码来源:Content.php

示例3: _construct

 /**
  * Add control buttons
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_txn = Mage::registry('current_transaction');
     if (!$this->_txn) {
         return;
     }
     $backUrl = $this->_txn->getOrderUrl() ? $this->_txn->getOrderUrl() : $this->getUrl('*/*/');
     $this->_addButton('back', array('label' => Mage::helper('Mage_Sales_Helper_Data')->__('Back'), 'onclick' => "setLocation('{$backUrl}')", 'class' => 'back'));
     if (Mage::getSingleton('Mage_Core_Model_Authorization')->isAllowed('Mage_Sales::transactions_fetch') && $this->_txn->getOrderPaymentObject()->getMethodInstance()->canFetchTransactionInfo()) {
         $fetchUrl = $this->getUrl('*/*/fetch', array('_current' => true));
         $this->_addButton('fetch', array('label' => Mage::helper('Mage_Sales_Helper_Data')->__('Fetch'), 'onclick' => "setLocation('{$fetchUrl}')", 'class' => 'button'));
     }
 }
开发者ID:natxetee,项目名称:magento2,代码行数:18,代码来源:Detail.php

示例4: _construct

 /**
  * @return void
  */
 protected function _construct()
 {
     $this->_headerText = Mage::helper('limesoda_environmentconfiguration')->__('Environment Configuration');
     parent::_construct();
 }
开发者ID:EliasKotlyar,项目名称:LimeSoda_EnvironmentConfiguration,代码行数:8,代码来源:Overview.php

示例5: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('mana/admin/page.phtml');
 }
开发者ID:xiaoguizhidao,项目名称:cupboardglasspipes.ecomitize.com,代码行数:5,代码来源:Page.php

示例6: _construct

 /**
  * Constructor
  *
  * @return void
  */
 protected function _construct()
 {
     $this->_headerText = Mage::helper('aoe_scheduler')->__('Scheduler Timeline');
     $this->loadSchedules();
     parent::_construct();
 }
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:11,代码来源:Timeline.php

示例7: _construct

 public function _construct()
 {
     $this->setTemplate('shift4/shift4salesreport/index.phtml');
     $this->_currencySymbol = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
     parent::_construct();
 }
开发者ID:xiaoguizhidao,项目名称:tyler-live,代码行数:6,代码来源:Index.php

示例8: _construct

 public function _construct()
 {
     $this->setTemplate('systeminfo/phpinfo.phtml');
     parent::_construct();
 }
开发者ID:ThomasNegeli,项目名称:Yireo_SystemInfo,代码行数:5,代码来源:Phpinfo.php

示例9: _construct

 /**
  * Constructor.
  *
  * @return void
  */
 protected function _construct()
 {
     $this->_headerText = $this->__('Manage Attribute Mapping');
     $this->_controller = 'adminhtml_map_attribute';
     parent::_construct();
 }
开发者ID:ridhoq,项目名称:mxpi-twitter,代码行数:11,代码来源:Name.php

示例10: _construct

 /**
  * Constructor
  *
  * @return void
  */
 protected function _construct()
 {
     $this->_headerText = $this->__('Scheduler Timeline');
     $this->loadSchedules();
     parent::_construct();
 }
开发者ID:jakapondang,项目名称:Aoe_Scheduler,代码行数:11,代码来源:Timeline.php

示例11: _construct

 /**
  * Construct.
  *
  * @return void
  */
 protected function _construct()
 {
     $this->_controller = 'adminhtml_map_attribute';
     parent::_construct();
 }
开发者ID:ridhoq,项目名称:mxpi-twitter,代码行数:10,代码来源:Edit.php

示例12: _construct

 /**
  * Prepare title.
  *
  * @return void
  */
 protected function _construct()
 {
     $this->_headerText = $this->__('Initializer Status');
     $this->_controller = 'adminhtml_initializer';
     parent::_construct();
 }
开发者ID:ridhoq,项目名称:mxpi-twitter,代码行数:11,代码来源:Set.php


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