Public Member Functions | |
getHeaderText () | |
getButtonsHtml () | |
getHeaderCssClass () | |
Protected Member Functions | |
_construct () | |
_prepareLayout () | |
_beforeToHtml () |
Definition at line 35 of file Search.php.
_beforeToHtml | ( | ) | [protected] |
Before rendering html, but after trying to load cache
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 57 of file Search.php.
00058 { 00059 $this->getChild('grid')->setIndex($this->getIndex()) 00060 ->setFirstShow($this->getFirstShow()); 00061 00062 return parent::_beforeToHtml(); 00063 }
_construct | ( | ) | [protected] |
Internal constructor, that is called from real constructor
Please override this one instead of overriding real __construct constructor
Please override this one instead of overriding real __construct constructor
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 37 of file Search.php.
00038 { 00039 $this->setId('bundle_option_selection_search'); 00040 $this->setTemplate('bundle/product/edit/bundle/option/search.phtml'); 00041 }
_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 48 of file Search.php.
00049 { 00050 $this->setChild( 00051 'grid', 00052 $this->getLayout()->createBlock('bundle/adminhtml_catalog_product_edit_tab_bundle_option_search_grid') 00053 ); 00054 return parent::_prepareLayout(); 00055 }
getButtonsHtml | ( | ) |
Definition at line 65 of file Search.php.
00066 { 00067 $addButtonData = array( 00068 'id' => 'add_button_' . $this->getIndex(), 00069 'label' => Mage::helper('sales')->__('Add Selected Product(s) to Option'), 00070 'onclick' => 'bSelection.productGridAddSelected(event)', 00071 'class' => 'add', 00072 ); 00073 return $this->getLayout()->createBlock('adminhtml/widget_button')->setData($addButtonData)->toHtml(); 00074 }
getHeaderCssClass | ( | ) |
getHeaderText | ( | ) |
Definition at line 43 of file Search.php.
00044 { 00045 return Mage::helper('bundle')->__('Please select products to add'); 00046 }