Mage_Adminhtml_Block_Review_Product_Grid Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Review_Product_Grid:

Mage_Adminhtml_Block_Catalog_Product_Grid Mage_Adminhtml_Block_Widget_Grid 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

 __construct ()
 getGridUrl ()
 getRowUrl ($row)

Protected Member Functions

 _prepareColumns ()
 _prepareMassaction ()


Detailed Description

Definition at line 34 of file Grid.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_Catalog_Product_Grid.

Definition at line 37 of file Grid.php.

00038     {
00039         parent::__construct();
00040         $this->setRowClickCallback('review.gridRowClick');
00041         $this->setUseAjax(true);
00042     }


Member Function Documentation

_prepareColumns (  )  [protected]

Check is single store mode

Reimplemented from Mage_Adminhtml_Block_Catalog_Product_Grid.

Definition at line 44 of file Grid.php.

00045     {
00046         $this->addColumn('entity_id', array(
00047                 'header'    => Mage::helper('review')->__('ID'),
00048                 'width'     => '50px',
00049                 'index'     => 'entity_id',
00050         ));
00051 
00052         $this->addColumn('name', array(
00053                 'header'    => Mage::helper('review')->__('Name'),
00054                 'index'     => 'name',
00055         ));
00056 
00057         if ((int)$this->getRequest()->getParam('store', 0)) {
00058             $this->addColumn('custom_name', array(
00059                     'header'    => Mage::helper('review')->__('Name In Store'),
00060                     'index'     => 'custom_name'
00061             ));
00062         }
00063 
00064         $this->addColumn('sku', array(
00065                 'header'    => Mage::helper('review')->__('SKU'),
00066                 'width'     => '80px',
00067                 'index'     => 'sku'
00068         ));
00069 
00070         $this->addColumn('price', array(
00071                 'header'    => Mage::helper('review')->__('Price'),
00072                 'type'      => 'currency',
00073                 'index'     => 'price'
00074         ));
00075 
00076         $this->addColumn('qty', array(
00077                 'header'    => Mage::helper('review')->__('Qty'),
00078                 'width'     => '130px',
00079                 'type'      => 'number',
00080                 'index'     => 'qty'
00081         ));
00082 
00083         $this->addColumn('status', array(
00084                 'header'    => Mage::helper('review')->__('Status'),
00085                 'width'     => '90px',
00086                 'index'     => 'status',
00087                 'type'      => 'options',
00088                 'source'    => 'catalog/product_status',
00089         ));
00090 
00091         /**
00092          * Check is single store mode
00093          */
00094         if (!Mage::app()->isSingleStoreMode()) {
00095             $this->addColumn('websites',
00096                 array(
00097                     'header'=> Mage::helper('review')->__('Websites'),
00098                     'width' => '100px',
00099                     'sortable'  => false,
00100                     'index'     => 'websites',
00101                     'type'      => 'options',
00102                     'options'   => Mage::getModel('core/website')->getCollection()->toOptionHash(),
00103             ));
00104         }
00105     }

_prepareMassaction (  )  [protected]

Prepare grid massaction actions

Returns:
Mage_Adminhtml_Block_Widget_Grid

Reimplemented from Mage_Adminhtml_Block_Catalog_Product_Grid.

Definition at line 117 of file Grid.php.

00118     {
00119         return $this;
00120     }

getGridUrl (  ) 

Reimplemented from Mage_Adminhtml_Block_Catalog_Product_Grid.

Definition at line 107 of file Grid.php.

00108     {
00109         return $this->getUrl('*/*/productGrid', array('_current'=>true));
00110     }

getRowUrl ( row  ) 

Reimplemented from Mage_Adminhtml_Block_Catalog_Product_Grid.

Definition at line 112 of file Grid.php.

00113     {
00114         return $this->getUrl('*/*/jsonProductInfo', array('id' => $row->getId()));
00115     }


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

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