Mage_Adminhtml_Report_CustomerController Class Reference

Inheritance diagram for Mage_Adminhtml_Report_CustomerController:

Mage_Adminhtml_Controller_Action Mage_Core_Controller_Varien_Action

List of all members.

Public Member Functions

 _initAction ()
 accountsAction ()
 exportAccountsCsvAction ()
 exportAccountsExcelAction ()
 ordersAction ()
 exportOrdersCsvAction ()
 exportOrdersExcelAction ()
 totalsAction ()
 exportTotalsCsvAction ()
 exportTotalsExcelAction ()

Protected Member Functions

 _isAllowed ()


Detailed Description

Definition at line 35 of file CustomerController.php.


Member Function Documentation

_initAction (  ) 

Definition at line 37 of file CustomerController.php.

00038     {
00039         $act = $this->getRequest()->getActionName();
00040         if(!$act)
00041             $act = 'default';
00042 
00043         $this->loadLayout()
00044             ->_addBreadcrumb(Mage::helper('reports')->__('Reports'), Mage::helper('reports')->__('Reports'))
00045             ->_addBreadcrumb(Mage::helper('reports')->__('Customers'), Mage::helper('reports')->__('Customers'));
00046         return $this;
00047     }

_isAllowed (  )  [protected]

Reimplemented from Mage_Adminhtml_Controller_Action.

Definition at line 150 of file CustomerController.php.

00151     {
00152         switch ($this->getRequest()->getActionName()) {
00153             case 'accounts':
00154                 return Mage::getSingleton('admin/session')->isAllowed('report/customers/accounts');
00155                 break;
00156             case 'orders':
00157                 return Mage::getSingleton('admin/session')->isAllowed('report/customers/orders');
00158                 break;
00159             case 'totals':
00160                 return Mage::getSingleton('admin/session')->isAllowed('report/customers/totals');
00161                 break;
00162             default:
00163                 return Mage::getSingleton('admin/session')->isAllowed('report/customers');
00164                 break;
00165         }
00166     }

accountsAction (  ) 

Definition at line 49 of file CustomerController.php.

00050     {
00051         $this->_initAction()
00052             ->_setActiveMenu('report/customer/accounts')
00053             ->_addBreadcrumb(Mage::helper('adminhtml')->__('New Accounts'), Mage::helper('adminhtml')->__('New Accounts'))
00054             ->_addContent($this->getLayout()->createBlock('adminhtml/report_customer_accounts'))
00055             ->renderLayout();
00056     }

exportAccountsCsvAction (  ) 

Export new accounts report grid to CSV format

Definition at line 61 of file CustomerController.php.

00062     {
00063         $fileName   = 'new_accounts.csv';
00064         $content    = $this->getLayout()->createBlock('adminhtml/report_customer_accounts_grid')
00065             ->getCsv();
00066 
00067         $this->_prepareDownloadResponse($fileName, $content);
00068     }

exportAccountsExcelAction (  ) 

Export new accounts report grid to Excel XML format

Definition at line 73 of file CustomerController.php.

00074     {
00075         $fileName   = 'accounts.xml';
00076         $content    = $this->getLayout()->createBlock('adminhtml/report_customer_accounts_grid')
00077             ->getExcel($fileName);
00078 
00079         $this->_prepareDownloadResponse($fileName, $content);
00080     }

exportOrdersCsvAction (  ) 

Export customers most ordered report to CSV format

Definition at line 95 of file CustomerController.php.

00096     {
00097         $fileName   = 'customers_orders.csv';
00098         $content    = $this->getLayout()->createBlock('adminhtml/report_customer_orders_grid')
00099             ->getCsv();
00100 
00101         $this->_prepareDownloadResponse($fileName, $content);
00102     }

exportOrdersExcelAction (  ) 

Export customers most ordered report to Excel XML format

Definition at line 107 of file CustomerController.php.

00108     {
00109         $fileName   = 'customers_orders.xml';
00110         $content    = $this->getLayout()->createBlock('adminhtml/report_customer_orders_grid')
00111             ->getExcel($fileName);
00112 
00113         $this->_prepareDownloadResponse($fileName, $content);
00114     }

exportTotalsCsvAction (  ) 

Export customers biggest totals report to CSV format

Definition at line 129 of file CustomerController.php.

00130     {
00131         $fileName   = 'cuatomer_totals.csv';
00132         $content    = $this->getLayout()->createBlock('adminhtml/report_customer_totals_grid')
00133             ->getCsv();
00134 
00135         $this->_prepareDownloadResponse($fileName, $content);
00136     }

exportTotalsExcelAction (  ) 

Export customers biggest totals report to Excel XML format

Definition at line 141 of file CustomerController.php.

00142     {
00143         $fileName   = 'customer_totals.xml';
00144         $content    = $this->getLayout()->createBlock('adminhtml/report_customer_totals_grid')
00145             ->getExcel($fileName);
00146 
00147         $this->_prepareDownloadResponse($fileName, $content);
00148     }

ordersAction (  ) 

Definition at line 82 of file CustomerController.php.

00083     {
00084         $this->_initAction()
00085             ->_setActiveMenu('report/customer/orders')
00086             ->_addBreadcrumb(Mage::helper('reports')->__('Customers by number of orders'),
00087                 Mage::helper('reports')->__('Customers by number of orders'))
00088             ->_addContent($this->getLayout()->createBlock('adminhtml/report_customer_orders'))
00089             ->renderLayout();
00090     }

totalsAction (  ) 

Definition at line 116 of file CustomerController.php.

00117     {
00118         $this->_initAction()
00119             ->_setActiveMenu('report/customer/totals')
00120             ->_addBreadcrumb(Mage::helper('reports')->__('Customers by orders total'),
00121                 Mage::helper('reports')->__('Customers by orders total'))
00122             ->_addContent($this->getLayout()->createBlock('adminhtml/report_customer_totals'))
00123             ->renderLayout();
00124     }


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

Generated on Sat Jul 4 17:23:28 2009 for Magento by  doxygen 1.5.8