
Public Member Functions | |
| __construct () | |
| getAddNewButtonHtml () | |
| getGridHtml () | |
| isSingleStoreMode () | |
Protected Member Functions | |
| _prepareLayout () | |
Definition at line 34 of file Product.php.
| __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 }
| _prepareLayout | ( | ) | [protected] |
Prepare button and grid
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
Definition at line 67 of file Product.php.
00068 { 00069 return $this->getChildHtml('add_new_button'); 00070 }
| getGridHtml | ( | ) |
Render grid
Definition at line 77 of file Product.php.
00078 { 00079 return $this->getChildHtml('grid'); 00080 }
| isSingleStoreMode | ( | ) |
Check whether it is single store mode
Definition at line 87 of file Product.php.
00088 { 00089 if (!Mage::app()->isSingleStoreMode()) { 00090 return false; 00091 } 00092 return true; 00093 }
1.5.8