Public Member Functions | |
canDisplay ($child) | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 35 of file Sidebar.php.
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
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 }