Mage_Adminhtml_Block_Report_Product_Sold_Grid Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Report_Product_Sold_Grid:

Mage_Adminhtml_Block_Report_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 ()

Protected Member Functions

 _prepareCollection ()
 _prepareColumns ()

Protected Attributes

 $_subReportSize = 0


Detailed Description

Definition at line 35 of file Grid.php.


Constructor & Destructor Documentation

__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     }


Member Function Documentation

_prepareCollection (  )  [protected]

Prepare collection object for grid

Returns:
Mage_Adminhtml_Block_Report_Product_Sold_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

Returns:
Mage_Adminhtml_Block_Report_Product_Sold_Grid

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     }


Member Data Documentation

$_subReportSize = 0 [protected]

Reimplemented from Mage_Adminhtml_Block_Report_Grid.

Definition at line 42 of file Grid.php.


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

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