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('gridAccounts'); 00041 }
_prepareCollection | ( | ) | [protected] |
Prepare grid collection object
Reimplemented from Mage_Adminhtml_Block_Report_Grid.
Definition at line 43 of file Grid.php.
00044 { 00045 parent::_prepareCollection(); 00046 $this->getCollection()->initReport('reports/accounts_collection'); 00047 }
_prepareColumns | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Block_Report_Grid.
Definition at line 49 of file Grid.php.
00050 { 00051 $this->addColumn('accounts', array( 00052 'header' =>Mage::helper('reports')->__('Number of New Accounts'), 00053 'index' =>'accounts', 00054 'total' =>'sum', 00055 'type' =>'number' 00056 )); 00057 00058 $this->addExportType('*/*/exportAccountsCsv', Mage::helper('reports')->__('CSV')); 00059 $this->addExportType('*/*/exportAccountsExcel', Mage::helper('reports')->__('Excel')); 00060 00061 return parent::_prepareColumns(); 00062 }