Mage_Adminhtml_Block_Catalog_Product Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Catalog_Product:

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 ()
 getAddNewButtonHtml ()
 getGridHtml ()
 isSingleStoreMode ()

Protected Member Functions

 _prepareLayout ()


Detailed Description

Definition at line 34 of file Product.php.


Constructor & Destructor Documentation

__construct (  ) 

Set template

Reimplemented from Varien_Object.

Definition at line 39 of file Product.php.

00040     {
00041         parent::__construct();
00042         $this->setTemplate('catalog/product.phtml');
00043     }


Member Function Documentation

_prepareLayout (  )  [protected]

Prepare button and grid

Returns:
Mage_Adminhtml_Block_Catalog_Product

Reimplemented from Mage_Adminhtml_Block_Widget_Container.

Definition at line 50 of file Product.php.

00051     {
00052         $this->_addButton('add_new', array(
00053             'label'   => Mage::helper('catalog')->__('Add Product'),
00054             'onclick' => "setLocation('{$this->getUrl('*/*/new')}')",
00055             'class'   => 'add'
00056         ));
00057 
00058         $this->setChild('grid', $this->getLayout()->createBlock('adminhtml/catalog_product_grid', 'product.grid'));
00059         return parent::_prepareLayout();
00060     }

getAddNewButtonHtml (  ) 

Deprecated since 1.3.2

Returns:
string

Definition at line 67 of file Product.php.

00068     {
00069         return $this->getChildHtml('add_new_button');
00070     }

getGridHtml (  ) 

Render grid

Returns:
string

Definition at line 77 of file Product.php.

00078     {
00079         return $this->getChildHtml('grid');
00080     }

isSingleStoreMode (  ) 

Check whether it is single store mode

Returns:
bool

Definition at line 87 of file Product.php.

00088     {
00089         if (!Mage::app()->isSingleStoreMode()) {
00090                return false;
00091         }
00092         return true;
00093     }


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

Generated on Sat Jul 4 17:22:43 2009 for Magento by  doxygen 1.5.8