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


PHP Mage_Adminhtml_Block_Widget_Form_Container::_construct方法代码示例

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


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

示例1: _construct

 /**
  * Internal constructor
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_objectId = 'rate_id';
     $this->_blockGroup = 'enterprise_reward';
     $this->_controller = 'adminhtml_reward_rate';
 }
开发者ID:hientruong90,项目名称:ee_14_installer,代码行数:10,代码来源:Edit.php

示例2: _construct

 /**
  * Initialize form
  * Add standard buttons
  * Add "Save and Continue" button
  */
 protected function _construct()
 {
     $this->_objectId = 'id';
     $this->_controller = 'promo_quote';
     parent::_construct();
     $this->_addButton('save_and_continue_edit', array('class' => 'save', 'label' => Mage::helper('Mage_SalesRule_Helper_Data')->__('Save and Continue Edit'), 'data_attribute' => array('mage-init' => array('button' => array('event' => 'saveAndContinueEdit', 'target' => '#edit_form')))), 10);
 }
开发者ID:natxetee,项目名称:magento2,代码行数:12,代码来源:Edit.php

示例3: _construct

 protected function _construct()
 {
     $this->_objectId = 'invoice_id';
     $this->_controller = 'sales_order_invoice';
     $this->_mode = 'view';
     $this->_session = Mage::getSingleton('Mage_Backend_Model_Auth_Session');
     parent::_construct();
     $this->_removeButton('save');
     $this->_removeButton('reset');
     $this->_removeButton('delete');
     if (!$this->getInvoice()) {
         return;
     }
     if ($this->_isAllowedAction('Mage_Sales::cancel') && $this->getInvoice()->canCancel()) {
         $this->_addButton('cancel', array('label' => Mage::helper('Mage_Sales_Helper_Data')->__('Cancel'), 'class' => 'delete', 'onclick' => 'setLocation(\'' . $this->getCancelUrl() . '\')'));
     }
     if ($this->_isAllowedAction('Mage_Sales::emails')) {
         $this->addButton('send_notification', array('label' => Mage::helper('Mage_Sales_Helper_Data')->__('Send Email'), 'onclick' => 'confirmSetLocation(\'' . Mage::helper('Mage_Sales_Helper_Data')->__('Are you sure you want to send Invoice email to customer?') . '\', \'' . $this->getEmailUrl() . '\')'));
     }
     $orderPayment = $this->getInvoice()->getOrder()->getPayment();
     if ($this->_isAllowedAction('Mage_Sales::creditmemo') && $this->getInvoice()->getOrder()->canCreditmemo()) {
         if ($orderPayment->canRefundPartialPerInvoice() && $this->getInvoice()->canRefund() && $orderPayment->getAmountPaid() > $orderPayment->getAmountRefunded() || $orderPayment->canRefund() && !$this->getInvoice()->getIsUsedForRefund()) {
             $this->_addButton('capture', array('label' => Mage::helper('Mage_Sales_Helper_Data')->__('Credit Memo'), 'class' => 'go', 'onclick' => 'setLocation(\'' . $this->getCreditMemoUrl() . '\')'));
         }
     }
     if ($this->_isAllowedAction('Mage_Sales::capture') && $this->getInvoice()->canCapture()) {
         $this->_addButton('capture', array('label' => Mage::helper('Mage_Sales_Helper_Data')->__('Capture'), 'class' => 'save', 'onclick' => 'setLocation(\'' . $this->getCaptureUrl() . '\')'));
     }
     if ($this->getInvoice()->canVoid()) {
         $this->_addButton('void', array('label' => Mage::helper('Mage_Sales_Helper_Data')->__('Void'), 'class' => 'save', 'onclick' => 'setLocation(\'' . $this->getVoidUrl() . '\')'));
     }
     if ($this->getInvoice()->getId()) {
         $this->_addButton('print', array('label' => Mage::helper('Mage_Sales_Helper_Data')->__('Print'), 'class' => 'save', 'onclick' => 'setLocation(\'' . $this->getPrintUrl() . '\')'));
     }
 }
开发者ID:natxetee,项目名称:magento2,代码行数:35,代码来源:View.php

示例4: _construct

 /**
  * Init container
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_headerText = $this->__('Magento <--> X.commerce');
     $this->_controller = 'adminhtml_attribute';
     $this->_blockGroup = 'xcom_mapping';
 }
开发者ID:ridhoq,项目名称:mxpi-twitter,代码行数:10,代码来源:Attribute.php

示例5: _construct

 /**
  * Internal constructor
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_objectId = 'job_code';
     $this->_blockGroup = 'aoe_scheduler';
     $this->_controller = 'adminhtml_job';
 }
开发者ID:xantin,项目名称:Aoe_Scheduler,代码行数:11,代码来源:Edit.php

示例6: _construct

 /**
  * Internal constructor
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_objectId = 'import_id';
     $this->_blockGroup = 'mageworx';
     $this->_controller = 'downloads_import';
 }
开发者ID:CE-Webmaster,项目名称:CE-Hub,代码行数:12,代码来源:Edit.php

示例7: _construct

 protected function _construct()
 {
     $this->_objectId = 'order_id';
     $this->_controller = 'sales_order';
     $this->_mode = 'create';
     parent::_construct();
     $this->setId('sales_order_create');
     $customerId = $this->_getSession()->getCustomerId();
     $storeId = $this->_getSession()->getStoreId();
     $this->_updateButton('save', 'label', Mage::helper('Mage_Sales_Helper_Data')->__('Submit Order'));
     $this->_updateButton('save', 'onclick', "order.submit()");
     $this->_updateButton('save', 'id', 'submit_order_top_button');
     if (is_null($customerId) || !$storeId) {
         $this->_updateButton('save', 'style', 'display:none');
     }
     $this->_updateButton('back', 'id', 'back_order_top_button');
     $this->_updateButton('back', 'onclick', 'setLocation(\'' . $this->getBackUrl() . '\')');
     $this->_updateButton('reset', 'id', 'reset_order_top_button');
     if (is_null($customerId)) {
         $this->_updateButton('reset', 'style', 'display:none');
     } else {
         $this->_updateButton('back', 'style', 'display:none');
     }
     $confirm = Mage::helper('Mage_Sales_Helper_Data')->__('Are you sure you want to cancel this order?');
     $this->_updateButton('reset', 'label', Mage::helper('Mage_Sales_Helper_Data')->__('Cancel'));
     $this->_updateButton('reset', 'class', 'cancel');
     $this->_updateButton('reset', 'onclick', 'deleteConfirm(\'' . $confirm . '\', \'' . $this->getCancelUrl() . '\')');
 }
开发者ID:natxetee,项目名称:magento2,代码行数:28,代码来源:Create.php

示例8: _construct

 /**
  * Init container
  */
 protected function _construct()
 {
     $this->_objectId = 'sitemap_id';
     $this->_controller = 'sitemap';
     parent::_construct();
     $this->_addButton('generate', array('label' => Mage::helper('Mage_Adminhtml_Helper_Data')->__('Save & Generate'), 'data_attribute' => array('mage-init' => array('button' => array('event' => 'save', 'target' => '#edit_form', 'eventData' => array('action' => array('args' => array('generate' => '1')))))), 'class' => 'add'));
 }
开发者ID:natxetee,项目名称:magento2,代码行数:10,代码来源:Edit.php

示例9: _construct

 /**
  * Block construction
  * Initialize titles, buttons
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_controller = '';
     $this->_headerText = Mage::helper('Mage_Paypal_Helper_Data')->__('View Transaction Details');
     $this->_removeButton('reset')->_removeButton('delete')->_removeButton('save');
 }
开发者ID:natxetee,项目名称:magento2,代码行数:11,代码来源:Details.php

示例10: _construct

 protected function _construct()
 {
     $this->_objectId = 'entity_id';
     $this->_controller = 'catalog_category';
     $this->_mode = 'edit';
     parent::_construct();
 }
开发者ID:natxetee,项目名称:magento2,代码行数:7,代码来源:Edit.php

示例11: _construct

 /**
  * {@inheritdoc}
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_objectId = 'import_id';
     $this->_blockGroup = 'nicovogelaar_nedisimport';
     $this->_controller = 'adminhtml_import';
 }
开发者ID:vecbralis,项目名称:magento-nedis-import,代码行数:10,代码来源:Container.php

示例12: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->_objectId = 'page';
     $this->_blockGroup = 'mzeis_documentation';
     $this->_controller = 'adminhtml_page';
 }
开发者ID:jhoelzl,项目名称:Mzeis_Documentation,代码行数:7,代码来源:Edit.php

示例13: _construct

 public function _construct()
 {
     parent::_construct();
     $this->_blockGroup = Forkel_OpenGraph_Helper_Data::MODULE_KEY;
     $this->_controller = 'adminhtml_entity';
     $this->_updateButton('save', 'label', $this->hlpr()->__('Save'));
 }
开发者ID:tobias-forkel,项目名称:Forkel_OpenGraph,代码行数:7,代码来源:Edit.php

示例14: _construct

 protected function _construct()
 {
     $this->_controller = 'sales_order';
     $this->_mode = 'address';
     parent::_construct();
     $this->_updateButton('save', 'label', Mage::helper('Mage_Sales_Helper_Data')->__('Save Order Address'));
     $this->_removeButton('delete');
 }
开发者ID:natxetee,项目名称:magento2,代码行数:8,代码来源:Address.php

示例15: _construct

 protected function _construct()
 {
     parent::_construct();
     $this->_controller = 'system_account';
     $this->_updateButton('save', 'label', Mage::helper('Mage_Adminhtml_Helper_Data')->__('Save Account'));
     $this->_removeButton('delete');
     $this->_removeButton('back');
 }
开发者ID:natxetee,项目名称:magento2,代码行数:8,代码来源:Edit.php


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