本文整理汇总了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';
}
示例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);
}
示例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() . '\')'));
}
}
示例4: _construct
/**
* Init container
*/
protected function _construct()
{
parent::_construct();
$this->_headerText = $this->__('Magento <--> X.commerce');
$this->_controller = 'adminhtml_attribute';
$this->_blockGroup = 'xcom_mapping';
}
示例5: _construct
/**
* Internal constructor
*
*/
protected function _construct()
{
parent::_construct();
$this->_objectId = 'job_code';
$this->_blockGroup = 'aoe_scheduler';
$this->_controller = 'adminhtml_job';
}
示例6: _construct
/**
* Internal constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->_objectId = 'import_id';
$this->_blockGroup = 'mageworx';
$this->_controller = 'downloads_import';
}
示例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() . '\')');
}
示例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'));
}
示例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');
}
示例10: _construct
protected function _construct()
{
$this->_objectId = 'entity_id';
$this->_controller = 'catalog_category';
$this->_mode = 'edit';
parent::_construct();
}
示例11: _construct
/**
* {@inheritdoc}
*/
protected function _construct()
{
parent::_construct();
$this->_objectId = 'import_id';
$this->_blockGroup = 'nicovogelaar_nedisimport';
$this->_controller = 'adminhtml_import';
}
示例12: _construct
protected function _construct()
{
parent::_construct();
$this->_objectId = 'page';
$this->_blockGroup = 'mzeis_documentation';
$this->_controller = 'adminhtml_page';
}
示例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'));
}
示例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');
}
示例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');
}