Mage_Adminhtml_Block_Sales_Order_Create_Sidebar Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Sales_Order_Create_Sidebar:

Mage_Adminhtml_Block_Sales_Order_Create_Abstract Mage_Adminhtml_Block_Widget Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 canDisplay ($child)

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 35 of file Sidebar.php.


Member Function Documentation

_prepareLayout (  )  [protected]

Preparing global layout

You can redefine this method in child classes for changin layout

Returns:
Mage_Core_Block_Abstract

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 37 of file Sidebar.php.

00038     {
00039         if ($this->getCustomerId()) {
00040             $button = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array(
00041                 'label' => Mage::helper('sales')->__('Update Changes'),
00042                 'onclick' => 'order.sidebarApplyChanges()',
00043                 'before_html' => '<div class="sub-btn-set">',
00044                 'after_html' => '</div>'
00045             ));
00046             $this->setChild('top_button', $button);
00047         }
00048 
00049         if ($this->getCustomerId()) {
00050             $button = clone $button;
00051             $button->unsId();
00052             $this->setChild('bottom_button', $button);
00053         }
00054         return parent::_prepareLayout();
00055     }

canDisplay ( child  ) 

Definition at line 57 of file Sidebar.php.

00058     {
00059         if (method_exists($child, 'canDisplay')) {
00060             return $child->canDisplay();
00061         }
00062         return true;
00063     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:22:59 2009 for Magento by  doxygen 1.5.8