Public Member Functions | |
__construct () | |
Protected Member Functions | |
_prepareCollection () | |
_prepareColumns () |
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_Report_Grid.
Definition at line 37 of file Grid.php.
00038 { 00039 parent::__construct(); 00040 $this->setId('gridShipping'); 00041 }
_prepareCollection | ( | ) | [protected] |
Prepare grid collection object
Validate from and to date
Getting and saving store ids for website & group
Reimplemented from Mage_Adminhtml_Block_Report_Grid.
Definition at line 43 of file Grid.php.
00044 { 00045 parent::_prepareCollection(); 00046 $this->getCollection()->initReport('reports/shipping_collection'); 00047 }
_prepareColumns | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Block_Report_Grid.
Definition at line 49 of file Grid.php.
00050 { 00051 $this->addColumn('shipping_description', array( 00052 'header' =>Mage::helper('reports')->__('Carrier/Method'), 00053 'index' =>'shipping_description' 00054 )); 00055 00056 $this->addColumn('orders', array( 00057 'header' =>Mage::helper('reports')->__('Number of Orders'), 00058 'index' =>'orders', 00059 'total' =>'sum', 00060 'type' =>'number' 00061 )); 00062 00063 $this->addColumn('total', array( 00064 'header' =>Mage::helper('reports')->__('Total Shipping'), 00065 'type' =>'currency', 00066 'currency_code' => $this->getCurrentCurrencyCode(), 00067 'index' =>'total', 00068 'total' =>'sum', 00069 'renderer' =>'adminhtml/report_grid_column_renderer_currency' 00070 )); 00071 00072 $this->addExportType('*/*/exportShippingCsv', Mage::helper('reports')->__('CSV')); 00073 $this->addExportType('*/*/exportShippingExcel', Mage::helper('reports')->__('Excel')); 00074 00075 return parent::_prepareColumns(); 00076 }