Mage_Adminhtml_Report_ShopcartController Class Reference

Inheritance diagram for Mage_Adminhtml_Report_ShopcartController:

Mage_Adminhtml_Controller_Action Mage_Core_Controller_Varien_Action

List of all members.

Public Member Functions

 _initAction ()
 customerAction ()
 exportCustomerCsvAction ()
 exportCustomerExcelAction ()
 productAction ()
 exportProductCsvAction ()
 exportProductExcelAction ()
 abandonedAction ()
 exportAbandonedCsvAction ()
 exportAbandonedExcelAction ()

Protected Member Functions

 _isAllowed ()


Detailed Description

Definition at line 34 of file ShopcartController.php.


Member Function Documentation

_initAction (  ) 

Definition at line 36 of file ShopcartController.php.

00037     {
00038         $act = $this->getRequest()->getActionName();
00039         $this->loadLayout()
00040             ->_addBreadcrumb(Mage::helper('reports')->__('Reports'), Mage::helper('reports')->__('Reports'))
00041             ->_addBreadcrumb(Mage::helper('reports')->__('Shopping Cart'), Mage::helper('reports')->__('Shopping Cart'));
00042         return $this;
00043     }

_isAllowed (  )  [protected]

Reimplemented from Mage_Adminhtml_Controller_Action.

Definition at line 144 of file ShopcartController.php.

00145     {
00146         switch ($this->getRequest()->getActionName()) {
00147             case 'customer':
00148                 return Mage::getSingleton('admin/session')->isAllowed('report/shopcart/customer');
00149                 break;
00150             case 'product':
00151                 return Mage::getSingleton('admin/session')->isAllowed('report/shopcart/product');
00152                 break;
00153             case 'abandoned':
00154                 return Mage::getSingleton('admin/session')->isAllowed('report/shopcart/abandoned');
00155                 break;
00156             default:
00157                 return Mage::getSingleton('admin/session')->isAllowed('report/shopcart');
00158                 break;
00159         }
00160     }

abandonedAction (  ) 

Definition at line 111 of file ShopcartController.php.

00112     {
00113         $this->_initAction()
00114             ->_setActiveMenu('report/shopcart/abandoned')
00115             ->_addBreadcrumb(Mage::helper('reports')->__('Abandoned carts'), Mage::helper('reports')->__('Abandoned carts'))
00116             ->_addContent($this->getLayout()->createBlock('adminhtml/report_shopcart_abandoned'))
00117             ->renderLayout();
00118     }

customerAction (  ) 

Definition at line 45 of file ShopcartController.php.

00046     {
00047         $this->_initAction()
00048             ->_setActiveMenu('report/shopcart/customer')
00049             ->_addBreadcrumb(Mage::helper('reports')->__('Customers Report'), Mage::helper('reports')->__('Customers Report'))
00050             ->_addContent($this->getLayout()->createBlock('adminhtml/report_shopcart_customer'))
00051             ->renderLayout();
00052     }

exportAbandonedCsvAction (  ) 

Export abandoned carts report grid to CSV format

Definition at line 123 of file ShopcartController.php.

00124     {
00125         $fileName   = 'shopcart_abandoned.csv';
00126         $content    = $this->getLayout()->createBlock('adminhtml/report_shopcart_abandoned_grid')
00127             ->getCsv();
00128 
00129         $this->_prepareDownloadResponse($fileName, $content);
00130     }

exportAbandonedExcelAction (  ) 

Export abandoned carts report to Excel XML format

Definition at line 135 of file ShopcartController.php.

00136     {
00137         $fileName   = 'shopcart_abandoned.xml';
00138         $content    = $this->getLayout()->createBlock('adminhtml/report_shopcart_abandoned_grid')
00139             ->getExcel($fileName);
00140 
00141         $this->_prepareDownloadResponse($fileName, $content);
00142     }

exportCustomerCsvAction (  ) 

Export shopcart customer report to CSV format

Definition at line 57 of file ShopcartController.php.

00058     {
00059         $fileName   = 'shopcart_customer.csv';
00060         $content    = $this->getLayout()->createBlock('adminhtml/report_shopcart_customer_grid')
00061             ->getCsv();
00062 
00063         $this->_prepareDownloadResponse($fileName, $content);
00064     }

exportCustomerExcelAction (  ) 

Export shopcart customer report to Excel XML format

Definition at line 69 of file ShopcartController.php.

00070     {
00071         $fileName   = 'shopcart_customer.xml';
00072         $content    = $this->getLayout()->createBlock('adminhtml/report_shopcart_customer_grid')
00073             ->getExcel($fileName);
00074 
00075         $this->_prepareDownloadResponse($fileName, $content);
00076     }

exportProductCsvAction (  ) 

Export products report grid to CSV format

Definition at line 90 of file ShopcartController.php.

00091     {
00092         $fileName   = 'shopcart_product.csv';
00093         $content    = $this->getLayout()->createBlock('adminhtml/report_shopcart_product_grid')
00094             ->getCsv();
00095 
00096         $this->_prepareDownloadResponse($fileName, $content);
00097     }

exportProductExcelAction (  ) 

Export products report to Excel XML format

Definition at line 102 of file ShopcartController.php.

00103     {
00104         $fileName   = 'shopcart_product.xml';
00105         $content    = $this->getLayout()->createBlock('adminhtml/report_shopcart_product_grid')
00106             ->getExcel($fileName);
00107 
00108         $this->_prepareDownloadResponse($fileName, $content);
00109     }

productAction (  ) 

Definition at line 78 of file ShopcartController.php.

00079     {
00080         $this->_initAction()
00081             ->_setActiveMenu('report/shopcart/product')
00082             ->_addBreadcrumb(Mage::helper('reports')->__('Products Report'), Mage::helper('reports')->__('Products Report'))
00083             ->_addContent($this->getLayout()->createBlock('adminhtml/report_shopcart_product'))
00084             ->renderLayout();
00085     }


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