Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle_Option_Search Class Reference

Inheritance diagram for Mage_Bundle_Block_Adminhtml_Catalog_Product_Edit_Tab_Bundle_Option_Search:

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

 getHeaderText ()
 getButtonsHtml ()
 getHeaderCssClass ()

Protected Member Functions

 _construct ()
 _prepareLayout ()
 _beforeToHtml ()


Detailed Description

Definition at line 35 of file Search.php.


Member Function Documentation

_beforeToHtml (  )  [protected]

Before rendering html, but after trying to load cache

Returns:
Mage_Core_Block_Abstract

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

Returns:
Mage_Core_Block_Abstract

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 (  ) 

Definition at line 76 of file Search.php.

00077     {
00078         return 'head-catalog-product';
00079     }

getHeaderText (  ) 

Definition at line 43 of file Search.php.

00044     {
00045         return Mage::helper('bundle')->__('Please select products to add');
00046     }


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

Generated on Sat Jul 4 17:23:34 2009 for Magento by  doxygen 1.5.8