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


PHP Mage_Adminhtml_Block_Sales_Order_Create_Abstract::_prepareLayout方法代码示例

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


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

示例1: _prepareLayout

 /**
  * Prepare global layout
  * Add renderers to Varien_Data_Form
  *
  * @return Mage_Adminhtml_Block_Sales_Order_Create_Form_Abstract
  */
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     Varien_Data_Form::setElementRenderer($this->getLayout()->createBlock('Mage_Adminhtml_Block_Widget_Form_Renderer_Element'));
     Varien_Data_Form::setFieldsetRenderer($this->getLayout()->createBlock('Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset'));
     Varien_Data_Form::setFieldsetElementRenderer($this->getLayout()->createBlock('Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element'));
     return $this;
 }
开发者ID:nemphys,项目名称:magento2,代码行数:14,代码来源:Abstract.php

示例2: _prepareLayout

 protected function _prepareLayout()
 {
     $childNames = array('sidebar', 'form_account', 'shipping_address', 'billing_address', 'shipping_method', 'billing_method', 'newsletter', 'search', 'items', 'comment', 'totals', 'giftmessage');
     foreach ($childNames as $name) {
         $this->setChild($name, $this->getLayout()->createBlock('adminhtml/sales_order_create_' . $name));
     }
     return parent::_prepareLayout();
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:8,代码来源:Data.php

示例3: _prepareLayout

 protected function _prepareLayout()
 {
     $this->setChild('data', $this->getLayout()->createBlock('adminhtml/sales_order_create_data'));
     $childNames = array('customer', 'store', 'data', 'messages');
     foreach ($childNames as $name) {
         $this->setChild($name, $this->getLayout()->createBlock('adminhtml/sales_order_create_' . $name));
     }
     return parent::_prepareLayout();
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:9,代码来源:Form.php

示例4: _prepareLayout

 protected function _prepareLayout()
 {
     if ($this->getCustomerId()) {
         $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('Update Changes'), 'onclick' => 'order.sidebarApplyChanges()', 'before_html' => '<div class="sub-btn-set">', 'after_html' => '</div>'));
         $this->setChild('top_button', $button);
     }
     if ($this->getCustomerId()) {
         $button = clone $button;
         $button->unsId();
         $this->setChild('bottom_button', $button);
     }
     return parent::_prepareLayout();
 }
开发者ID:jpbender,项目名称:mage_virtual,代码行数:13,代码来源:Sidebar.php

示例5: _prepareLayout

 protected function _prepareLayout()
 {
     if ($this->getCustomerId()) {
         $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('sales')->__('Update Changes'), 'onclick' => 'order.sidebarApplyChanges()', 'before_html' => '<div class="sub-btn-set">', 'after_html' => '</div>'));
         $this->setChild('top_button', $button);
     }
     $this->setChild('cart', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_cart'));
     $this->setChild('wishlist', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_wishlist'));
     $this->setChild('reorder', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_reorder'));
     $this->setChild('viewed', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_viewed'));
     $this->setChild('compared', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_compared'));
     $this->setChild('pcompared', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_pcompared'));
     $this->setChild('pviewed', $this->getLayout()->createBlock('adminhtml/sales_order_create_sidebar_pviewed'));
     if ($this->getCustomerId()) {
         $this->setChild('bottom_button', $button);
     }
     return parent::_prepareLayout();
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:18,代码来源:Sidebar.php

示例6: _prepareLayout

 protected function _prepareLayout()
 {
     $this->setChild('select', $this->getLayout()->createBlock('adminhtml/sales_order_create_store_select'));
     return parent::_prepareLayout();
 }
开发者ID:HelioFreitas,项目名称:magento-pt_br,代码行数:5,代码来源:Store.php


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