Public Member Functions | |
__construct () | |
getGridUrl () | |
getRowUrl ($row) | |
Protected Member Functions | |
_prepareColumns () | |
_prepareMassaction () |
Definition at line 34 of file Grid.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_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 }
_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
Reimplemented from Mage_Adminhtml_Block_Catalog_Product_Grid.
Definition at line 117 of file Grid.php.
getGridUrl | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Catalog_Product_Grid.
Definition at line 107 of file Grid.php.
getRowUrl | ( | $ | row | ) |