Public Member Functions | |
__construct () | |
Protected Member Functions | |
_prepareCollection () | |
_prepareColumns () | |
Protected Attributes | |
$_subReportSize = 0 |
Definition at line 35 of file Grid.php.
__construct | ( | ) |
Initialize Grid settings
Reimplemented from Mage_Adminhtml_Block_Report_Grid.
Definition at line 48 of file Grid.php.
00049 { 00050 parent::__construct(); 00051 $this->setId('gridProductsSold'); 00052 }
_prepareCollection | ( | ) | [protected] |
Prepare collection object for grid
Reimplemented from Mage_Adminhtml_Block_Report_Grid.
Definition at line 59 of file Grid.php.
00060 { 00061 parent::_prepareCollection(); 00062 $this->getCollection() 00063 ->initReport('reports/product_sold_collection'); 00064 return $this; 00065 }
_prepareColumns | ( | ) | [protected] |
Prepare Grid columns
Reimplemented from Mage_Adminhtml_Block_Report_Grid.
Definition at line 72 of file Grid.php.
00073 { 00074 $this->addColumn('name', array( 00075 'header' =>Mage::helper('reports')->__('Product Name'), 00076 'index' =>'name' 00077 )); 00078 00079 $this->addColumn('ordered_qty', array( 00080 'header' =>Mage::helper('reports')->__('Quantity Ordered'), 00081 'width' =>'120px', 00082 'align' =>'right', 00083 'index' =>'ordered_qty', 00084 'total' =>'sum', 00085 'type' =>'number' 00086 )); 00087 00088 $this->addExportType('*/*/exportSoldCsv', Mage::helper('reports')->__('CSV')); 00089 $this->addExportType('*/*/exportSoldExcel', Mage::helper('reports')->__('Excel')); 00090 00091 return parent::_prepareColumns(); 00092 }
$_subReportSize = 0 [protected] |