Public Member Functions | |
__construct () | |
getAddButtonHtml () | |
getStoreSwitcherHtml () | |
getCaptchaHtml () | |
getStore () | |
Protected Member Functions | |
_prepareLayout () |
Definition at line 34 of file Items.php.
__construct | ( | ) |
Constructor
By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Container.
Definition at line 37 of file Items.php.
00038 { 00039 parent::__construct(); 00040 $this->setTemplate('googlebase/items.phtml'); 00041 }
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Container.
Definition at line 43 of file Items.php.
00044 { 00045 $this->setChild('item', $this->getLayout()->createBlock('googlebase/adminhtml_items_item')); 00046 $this->setChild('product', $this->getLayout()->createBlock('googlebase/adminhtml_items_product')); 00047 $this->setChild('store_switcher', $this->getLayout()->createBlock('googlebase/adminhtml_store_switcher')); 00048 }
getAddButtonHtml | ( | ) |
Definition at line 50 of file Items.php.
00051 { 00052 $addButtonData = array( 00053 'id' => 'products_grid_button', 00054 'label' => $this->__('View Available Products'), 00055 ); 00056 return $this->getLayout() 00057 ->createBlock('adminhtml/widget_button') 00058 ->setData($addButtonData) 00059 ->toHtml(); 00060 }
getCaptchaHtml | ( | ) |
getStore | ( | ) |
getStoreSwitcherHtml | ( | ) |
Definition at line 62 of file Items.php.
00063 { 00064 return $this->getChildHtml('store_switcher'); 00065 }