Mage_GoogleBase_Block_Adminhtml_Items Class Reference

Inheritance diagram for Mage_GoogleBase_Block_Adminhtml_Items:

Mage_Adminhtml_Block_Widget_Grid_Container Mage_Adminhtml_Block_Widget_Container Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getAddButtonHtml ()
 getStoreSwitcherHtml ()
 getCaptchaHtml ()
 getStore ()

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 34 of file Items.php.


Constructor & Destructor Documentation

__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     }


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

Definition at line 67 of file Items.php.

00068     {
00069         return $this->getLayout()->createBlock('googlebase/adminhtml_captcha')
00070             ->setGbaseCaptchaToken($this->getGbaseCaptchaToken())
00071             ->setGbaseCaptchaUrl($this->getGbaseCaptchaUrl())
00072             ->toHtml();
00073     }

getStore (  ) 

Definition at line 75 of file Items.php.

00076     {
00077         return $this->_getData('store');
00078     }

getStoreSwitcherHtml (  ) 

Definition at line 62 of file Items.php.

00063     {
00064         return $this->getChildHtml('store_switcher');
00065     }


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

Generated on Sat Jul 4 17:24:14 2009 for Magento by  doxygen 1.5.8