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


PHP Mage_Adminhtml_Block_Widget_Container::_beforeToHtml方法代码示例

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


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

示例1: _beforeToHtml

 protected function _beforeToHtml()
 {
     parent::_beforeToHtml();
     // --------------------------------------
     $listing = Mage::helper('M2ePro/Component_Ebay')->getCachedObject('Listing', $this->getRequest()->getParam('listing_id'));
     $viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
     $this->setChild('view_header', $viewHeaderBlock);
     // --------------------------------------
     // --------------------------------------
     $listingData = Mage::helper('M2ePro/Data_Global')->getValue('temp_data');
     $internalData = $this->getData('internal_data');
     $chooserBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_category_chooser');
     $chooserBlock->setMarketplaceId($listingData['marketplace_id']);
     $chooserBlock->setAccountId($listingData['account_id']);
     if (!empty($internalData)) {
         $chooserBlock->setInternalData($internalData);
     }
     $this->setChild('category_chooser', $chooserBlock);
     // --------------------------------------
     // --------------------------------------
     $data = array('label' => Mage::helper('adminhtml')->__('Yes'), 'id' => 'existing_templates_confirm_button');
     $this->setChild('existing_templates_confirm_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data));
     // --------------------------------------
     $data = array('label' => Mage::helper('adminhtml')->__('No'), 'id' => 'existing_templates_cancel_button');
     $this->setChild('existing_templates_cancel_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data));
     // --------------------------------------
 }
开发者ID:technomagegithub,项目名称:magento,代码行数:27,代码来源:Chooser.php

示例2: _beforeToHtml

 protected function _beforeToHtml()
 {
     $ticket = $this->getTicket();
     $this->_headerText = Mage::helper('inchoo_tickets')->__('Ticket #%s - %s', $ticket->getTicketId(), $this->escapeHtml($ticket->getSubject()));
     $this->setViewHtml('<div id="' . $this->getDestElementId() . '"></div>');
     return parent::_beforeToHtml();
 }
开发者ID:ivan-veres,项目名称:Inchoo-Tickets,代码行数:7,代码来源:View.php

示例3: _beforeToHtml

 /**
  * Set title and a hack for tabs container
  *
  * @return Mage_Sales_Block_Adminhtml_Recurring_Profile_View
  */
 protected function _beforeToHtml()
 {
     $profile = Mage::registry('current_recurring_profile');
     $this->_headerText = Mage::helper('sales')->__('Recurring Profile # %s', $profile->getReferenceId());
     $this->setViewHtml('<div id="' . $this->getDestElementId() . '"></div>');
     return parent::_beforeToHtml();
 }
开发者ID:hirentricore,项目名称:devmagento,代码行数:12,代码来源:View.php

示例4: _beforeToHtml

 protected function _beforeToHtml()
 {
     parent::_beforeToHtml();
     // --------------------------------------
     $listing = Mage::helper('M2ePro/Component_Ebay')->getCachedObject('Listing', $this->getRequest()->getParam('listing_id'));
     $viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
     $this->setChild('view_header', $viewHeaderBlock);
     // --------------------------------------
     // --------------------------------------
     $listingData = Mage::helper('M2ePro/Data_Global')->getValue('temp_data');
     $categoryMode = $this->getData('category_mode');
     $categoryValue = $this->getData('category_value');
     $internalData = $this->getData('internal_data');
     $specifics = $this->getData('specifics');
     $specificBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_category_specific');
     $specificBlock->setMarketplaceId($listingData['marketplace_id']);
     $specificBlock->setCategoryMode($categoryMode);
     $specificBlock->setCategoryValue($categoryValue);
     if (!empty($internalData)) {
         $specificBlock->setInternalData($internalData);
     }
     if (!empty($specifics)) {
         $specificBlock->setSelectedSpecifics($specifics);
     }
     $this->setChild('category_specific', $specificBlock);
     // --------------------------------------
     // --------------------------------------
     if ($categoryMode == Ess_M2ePro_Model_Ebay_Template_Category::CATEGORY_MODE_EBAY) {
         $this->_selectedCategoryPath = Mage::helper('M2ePro/Component_Ebay_Category_Ebay')->getPath($categoryValue, $listingData['marketplace_id']);
     } else {
         $attributeLabel = Mage::helper('M2ePro/Magento_Attribute')->getAttributeLabel($categoryValue);
         $this->_selectedCategoryPath = Mage::helper('M2ePro')->__('Magento Attribute') . ' > ' . $attributeLabel;
     }
     // --------------------------------------
 }
开发者ID:ppkowalski,项目名称:M2E,代码行数:35,代码来源:Specific.php

示例5: _beforeToHtml

 protected function _beforeToHtml()
 {
     // Magento order data
     // ---------------
     $this->realMagentoOrderId = NULL;
     $magentoOrder = $this->order->getMagentoOrder();
     if (!is_null($magentoOrder)) {
         $this->realMagentoOrderId = $magentoOrder->getRealOrderId();
     }
     // ---------------
     // ---------------
     if (!is_null($magentoOrder) && $magentoOrder->hasShipments()) {
         $url = $this->getUrl('*/adminhtml_order/resubmitShippingInfo', array('id' => $this->order->getId()));
         $data = array('class' => '', 'label' => Mage::helper('M2ePro')->__('Resend Shipping Information'), 'onclick' => 'setLocation(\'' . $url . '\');');
         $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
         $this->setChild('resubmit_shipping_info', $buttonBlock);
     }
     // ---------------
     // Shipping data
     // ---------------
     /** @var $shippingAddress Ess_M2ePro_Model_Buy_Order_ShippingAddress */
     $shippingAddress = $this->order->getShippingAddress();
     $this->shippingAddress = $shippingAddress->getData();
     $this->shippingAddress['country_name'] = $shippingAddress->getCountryName();
     $this->shippingAddress['phone'] = $this->order->getChildObject()->getBillingAddress()->getData('phone');
     $this->shippingAddress['company'] = $this->order->getChildObject()->getBillingAddress()->getData('company');
     // ---------------
     $this->setChild('item', $this->getLayout()->createBlock('M2ePro/adminhtml_common_buy_order_view_item'));
     $this->setChild('item_edit', $this->getLayout()->createBlock('M2ePro/adminhtml_order_item_edit'));
     $this->setChild('log', $this->getLayout()->createBlock('M2ePro/adminhtml_order_view_log_grid'));
     return parent::_beforeToHtml();
 }
开发者ID:technomagegithub,项目名称:magento,代码行数:32,代码来源:Form.php

示例6: _beforeToHtml

 protected function _beforeToHtml()
 {
     if (is_null($this->compatibilityType)) {
         throw new LogicException('Compatibility type was not set.');
     }
     return parent::_beforeToHtml();
 }
开发者ID:ppkowalski,项目名称:M2E,代码行数:7,代码来源:Add.php

示例7: _beforeToHtml

 protected function _beforeToHtml()
 {
     //-------------------------------
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('M2ePro')->__('Continue'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/adminhtml_ebay_listing/confirmTutorial') . '\');', 'class' => 'confirm_tutorial'));
     $this->setChild('confirm_tutorial', $buttonBlock);
     //-------------------------------
     return parent::_beforeToHtml();
 }
开发者ID:xiaoguizhidao,项目名称:beut,代码行数:8,代码来源:Tutorial.php

示例8: _beforeToHtml

 protected function _beforeToHtml()
 {
     //------------------------------
     $buttonCancelBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('id' => 'productSearchMenu_cancel_button', 'label' => Mage::helper('M2ePro')->__('Close'), 'class' => 'productSearchMenu_cancel_button'));
     $this->setChild('productSearchMenu_cancel_button', $buttonCancelBlock);
     //------------------------------
     parent::_beforeToHtml();
 }
开发者ID:xiaoguizhidao,项目名称:beut,代码行数:8,代码来源:Menu.php

示例9: _beforeToHtml

 protected function _beforeToHtml()
 {
     parent::_beforeToHtml();
     $listing = Mage::helper('M2ePro/Component_Ebay')->getCachedObject('Listing', $this->getRequest()->getParam('listing_id'));
     $viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
     $this->setChild('view_header', $viewHeaderBlock);
     // ------------------------------------------------
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('M2ePro')->__('Continue'), 'onclick' => ''));
     $this->setChild('mode_same_remember_pop_up_confirm_button', $buttonBlock);
 }
开发者ID:xiaoguizhidao,项目名称:ecommerce,代码行数:10,代码来源:Mode.php

示例10: _beforeToHtml

 protected function _beforeToHtml()
 {
     //-------------------------------
     $url = $this->getUrl('*/adminhtml_common_listing/confirmTutorial', array('component' => Ess_M2ePro_Helper_Component_Play::NICK));
     $data = array('label' => Mage::helper('M2ePro')->__('Continue'), 'onclick' => 'setLocation(\'' . $url . '\');', 'class' => 'confirm_tutorial');
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
     $this->setChild('confirm_tutorial', $buttonBlock);
     //-------------------------------
     return parent::_beforeToHtml();
 }
开发者ID:technomagegithub,项目名称:magento,代码行数:10,代码来源:Tutorial.php

示例11: _beforeToHtml

 protected function _beforeToHtml()
 {
     $additionalTitle = $this->getRequest()->getParam('current_indexed_xpath');
     $additionalTitle = explode('/', ltrim($additionalTitle, '/'));
     array_shift($additionalTitle);
     $additionalTitle = array_map(function ($el) {
         return preg_replace('/-\\d+/', '', $el);
     }, $additionalTitle);
     $this->setData('additional_title', implode(' > ', $additionalTitle));
     return parent::_beforeToHtml();
 }
开发者ID:ppkowalski,项目名称:M2E,代码行数:11,代码来源:Add.php

示例12: _beforeToHtml

 protected function _beforeToHtml()
 {
     //------------------------------
     $data = array('id' => 'mapping_submit_button', 'label' => Mage::helper('M2ePro')->__('Confirm'), 'class' => 'mapping_submit_button submit');
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
     $this->setChild('mapping_submit_button', $buttonBlock);
     //------------------------------
     //------------------------------
     $this->setChild('mapping_grid', $this->getLayout()->createBlock('M2ePro/adminhtml_listing_other_mapping_grid'));
     //------------------------------
     parent::_beforeToHtml();
 }
开发者ID:ppkowalski,项目名称:M2E,代码行数:12,代码来源:Mapping.php

示例13: _beforeToHtml

 protected function _beforeToHtml()
 {
     $specificsGrid = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_motor_specific_grid');
     $this->setData('specifics_grid_id', $specificsGrid->getId());
     $attributeCode = $this->getData('motors_specifics_attribute');
     $attributeName = '';
     $attribute = Mage::getResourceModel('catalog/product')->getAttribute($attributeCode);
     if ($attribute !== false) {
         $attributeName = $attribute->getFrontendLabel();
     }
     $this->setData('motors_specifics_attribute', $attributeName);
     return parent::_beforeToHtml();
 }
开发者ID:xiaoguizhidao,项目名称:beut,代码行数:13,代码来源:GenerateAttributeValue.php

示例14: _beforeToHtml

 protected function _beforeToHtml()
 {
     //------------------------------
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('id' => 'mapToProduct_submit_button', 'label' => Mage::helper('M2ePro')->__('Confirm'), 'class' => 'mapToProduct_submit_button submit'));
     $this->setChild('mapToProduct_submit_button', $buttonBlock);
     //------------------------------
     //------------------------------
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('id' => 'mapToProduct_advancedSearch_button', 'label' => Mage::helper('M2ePro')->__('Advanced Search'), 'class' => 'mapToProduct_advancedSearch_button submit', 'onclick' => '$(\'help_grid\').toggle()'));
     $this->setChild('mapToProduct_advancedSearch_button', $buttonBlock);
     //------------------------------
     //------------------------------
     $this->setChild('mapToProduct_grid', $this->getLayout()->createBlock('M2ePro/adminhtml_listing_other_mapToProduct_grid'));
     //------------------------------
     parent::_beforeToHtml();
 }
开发者ID:xiaoguizhidao,项目名称:beut,代码行数:15,代码来源:MapToProduct.php

示例15: _beforeToHtml

 protected function _beforeToHtml()
 {
     //------------------------------
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('id' => 'failedProducts_continue_button', 'label' => Mage::helper('M2ePro')->__('Continue'), 'class' => 'submit'));
     $this->setChild('failedProducts_continue_button', $buttonBlock);
     //------------------------------
     //------------------------------
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('id' => 'failedProducts_back_button', 'label' => Mage::helper('M2ePro')->__('Back'), 'class' => 'scalable back'));
     $this->setChild('failedProducts_back_button', $buttonBlock);
     //------------------------------
     //------------------------------
     $this->setChild('failedProducts_grid', $this->getLayout()->createBlock('M2ePro/adminhtml_listing_moveToListing_failedProducts_grid'));
     //------------------------------
     parent::_beforeToHtml();
 }
开发者ID:xiaoguizhidao,项目名称:beut,代码行数:15,代码来源:FailedProducts.php


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