本文整理汇总了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() . '\')'));
}
}
示例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'));
}
示例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'));
}
}
示例4: _construct
/**
* @return void
*/
protected function _construct()
{
$this->_headerText = Mage::helper('limesoda_environmentconfiguration')->__('Environment Configuration');
parent::_construct();
}
示例5: _construct
protected function _construct()
{
parent::_construct();
$this->setTemplate('mana/admin/page.phtml');
}
示例6: _construct
/**
* Constructor
*
* @return void
*/
protected function _construct()
{
$this->_headerText = Mage::helper('aoe_scheduler')->__('Scheduler Timeline');
$this->loadSchedules();
parent::_construct();
}
示例7: _construct
public function _construct()
{
$this->setTemplate('shift4/shift4salesreport/index.phtml');
$this->_currencySymbol = Mage::app()->getLocale()->currency(Mage::app()->getStore()->getCurrentCurrencyCode())->getSymbol();
parent::_construct();
}
示例8: _construct
public function _construct()
{
$this->setTemplate('systeminfo/phpinfo.phtml');
parent::_construct();
}
示例9: _construct
/**
* Constructor.
*
* @return void
*/
protected function _construct()
{
$this->_headerText = $this->__('Manage Attribute Mapping');
$this->_controller = 'adminhtml_map_attribute';
parent::_construct();
}
示例10: _construct
/**
* Constructor
*
* @return void
*/
protected function _construct()
{
$this->_headerText = $this->__('Scheduler Timeline');
$this->loadSchedules();
parent::_construct();
}
示例11: _construct
/**
* Construct.
*
* @return void
*/
protected function _construct()
{
$this->_controller = 'adminhtml_map_attribute';
parent::_construct();
}
示例12: _construct
/**
* Prepare title.
*
* @return void
*/
protected function _construct()
{
$this->_headerText = $this->__('Initializer Status');
$this->_controller = 'adminhtml_initializer';
parent::_construct();
}