Mage_Adminhtml_Report_SalesController Class Reference

Inheritance diagram for Mage_Adminhtml_Report_SalesController:

Mage_Adminhtml_Controller_Action Mage_Core_Controller_Varien_Action

List of all members.

Public Member Functions

 _initAction ()
 salesAction ()
 exportSalesCsvAction ()
 exportSalesExcelAction ()
 taxAction ()
 exportTaxCsvAction ()
 exportTaxExcelAction ()
 invoicedAction ()
 exportInvoicedCsvAction ()
 exportInvoicedExcelAction ()
 refundedAction ()
 exportRefundedCsvAction ()
 exportRefundedExcelAction ()
 couponsAction ()
 exportCouponsCsvAction ()
 exportCouponsExcelAction ()
 shippingAction ()
 exportShippingCsvAction ()
 exportShippingExcelAction ()

Protected Member Functions

 _isAllowed ()


Detailed Description

Definition at line 34 of file SalesController.php.


Member Function Documentation

_initAction (  ) 

Definition at line 36 of file SalesController.php.

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

_isAllowed (  )  [protected]

Reimplemented from Mage_Adminhtml_Controller_Action.

Definition at line 245 of file SalesController.php.

00246     {
00247         switch ($this->getRequest()->getActionName()) {
00248             case 'sales':
00249                 return Mage::getSingleton('admin/session')->isAllowed('report/salesroot/sales');
00250                 break;
00251             case 'tax':
00252                 return Mage::getSingleton('admin/session')->isAllowed('report/salesroot/tax');
00253                 break;
00254             case 'shipping':
00255                 return Mage::getSingleton('admin/session')->isAllowed('report/salesroot/shipping');
00256                 break;
00257             case 'invoiced':
00258                 return Mage::getSingleton('admin/session')->isAllowed('report/salesroot/invoiced');
00259                 break;
00260             case 'refunded':
00261                 return Mage::getSingleton('admin/session')->isAllowed('report/salesroot/refunded');
00262                 break;
00263             case 'coupons':
00264                 return Mage::getSingleton('admin/session')->isAllowed('report/salesroot/coupons');
00265                 break;
00266             case 'shipping':
00267                 return Mage::getSingleton('admin/session')->isAllowed('report/salesroot/shipping');
00268                 break;
00269             default:
00270                 return Mage::getSingleton('admin/session')->isAllowed('report/salesroot');
00271                 break;
00272         }
00273     }

couponsAction (  ) 

Definition at line 179 of file SalesController.php.

00180     {
00181         $this->_initAction()
00182             ->_setActiveMenu('report/sales/coupons')
00183             ->_addBreadcrumb(Mage::helper('adminhtml')->__('Coupons'), Mage::helper('adminhtml')->__('Coupons'))
00184             ->_addContent($this->getLayout()->createBlock('adminhtml/report_sales_coupons'))
00185             ->renderLayout();
00186     }

exportCouponsCsvAction (  ) 

Export coupons report grid to CSV format

Definition at line 191 of file SalesController.php.

00192     {
00193         $fileName   = 'coupons.csv';
00194         $content    = $this->getLayout()->createBlock('adminhtml/report_sales_coupons_grid')
00195             ->getCsv();
00196 
00197         $this->_prepareDownloadResponse($fileName, $content);
00198     }

exportCouponsExcelAction (  ) 

Export coupons report grid to Excel XML format

Definition at line 203 of file SalesController.php.

00204     {
00205         $fileName   = 'coupons.xml';
00206         $content    = $this->getLayout()->createBlock('adminhtml/report_sales_coupons_grid')
00207             ->getExcel($fileName);
00208 
00209         $this->_prepareDownloadResponse($fileName, $content);
00210     }

exportInvoicedCsvAction (  ) 

Export invoiced report grid to CSV format

Definition at line 125 of file SalesController.php.

00126     {
00127         $fileName   = 'invoiced.csv';
00128         $content    = $this->getLayout()->createBlock('adminhtml/report_sales_invoiced_grid')
00129             ->getCsv();
00130 
00131         $this->_prepareDownloadResponse($fileName, $content);
00132     }

exportInvoicedExcelAction (  ) 

Export invoiced report grid to Excel XML format

Definition at line 137 of file SalesController.php.

00138     {
00139         $fileName   = 'invoiced.xml';
00140         $content    = $this->getLayout()->createBlock('adminhtml/report_sales_invoiced_grid')
00141             ->getExcel($fileName);
00142 
00143         $this->_prepareDownloadResponse($fileName, $content);
00144     }

exportRefundedCsvAction (  ) 

Export refunded report grid to CSV format

Definition at line 158 of file SalesController.php.

00159     {
00160         $fileName   = 'refunded.csv';
00161         $content    = $this->getLayout()->createBlock('adminhtml/report_sales_refunded_grid')
00162             ->getCsv();
00163 
00164         $this->_prepareDownloadResponse($fileName, $content);
00165     }

exportRefundedExcelAction (  ) 

Export refunded report grid to Excel XML format

Definition at line 170 of file SalesController.php.

00171     {
00172         $fileName   = 'refunded.xml';
00173         $content    = $this->getLayout()->createBlock('adminhtml/report_sales_refunded_grid')
00174             ->getExcel($fileName);
00175 
00176         $this->_prepareDownloadResponse($fileName, $content);
00177     }

exportSalesCsvAction (  ) 

Export sales report grid to CSV format

Definition at line 59 of file SalesController.php.

00060     {
00061         $fileName   = 'sales.csv';
00062         $content    = $this->getLayout()->createBlock('adminhtml/report_sales_sales_grid')
00063             ->getCsv();
00064 
00065         $this->_prepareDownloadResponse($fileName, $content);
00066     }

exportSalesExcelAction (  ) 

Export sales report grid to Excel XML format

Definition at line 71 of file SalesController.php.

00072     {
00073         $fileName   = 'sales.xml';
00074         $content    = $this->getLayout()->createBlock('adminhtml/report_sales_sales_grid')
00075             ->getExcel($fileName);
00076 
00077         $this->_prepareDownloadResponse($fileName, $content);
00078     }

exportShippingCsvAction (  ) 

Export shipping report grid to CSV format

Definition at line 224 of file SalesController.php.

00225     {
00226         $fileName   = 'shipping.csv';
00227         $content    = $this->getLayout()->createBlock('adminhtml/report_sales_shipping_grid')
00228             ->getCsv();
00229 
00230         $this->_prepareDownloadResponse($fileName, $content);
00231     }

exportShippingExcelAction (  ) 

Export shipping report grid to Excel XML format

Definition at line 236 of file SalesController.php.

00237     {
00238         $fileName   = 'shipping.xml';
00239         $content    = $this->getLayout()->createBlock('adminhtml/report_sales_shipping_grid')
00240             ->getExcel($fileName);
00241 
00242         $this->_prepareDownloadResponse($fileName, $content);
00243     }

exportTaxCsvAction (  ) 

Export tax report grid to CSV format

Definition at line 92 of file SalesController.php.

00093     {
00094         $fileName   = 'tax.csv';
00095         $content    = $this->getLayout()->createBlock('adminhtml/report_sales_tax_grid')
00096             ->getCsv();
00097 
00098         $this->_prepareDownloadResponse($fileName, $content);
00099     }

exportTaxExcelAction (  ) 

Export tax report grid to Excel XML format

Definition at line 104 of file SalesController.php.

00105     {
00106         $fileName   = 'tax.xml';
00107         $content    = $this->getLayout()->createBlock('adminhtml/report_sales_tax_grid')
00108             ->getExcel($fileName);
00109 
00110         $this->_prepareDownloadResponse($fileName, $content);
00111     }

invoicedAction (  ) 

Definition at line 113 of file SalesController.php.

00114     {
00115         $this->_initAction()
00116             ->_setActiveMenu('report/sales/invoiced')
00117             ->_addBreadcrumb(Mage::helper('adminhtml')->__('Total Invoiced'), Mage::helper('adminhtml')->__('Total Invoiced'))
00118             ->_addContent($this->getLayout()->createBlock('adminhtml/report_sales_invoiced'))
00119             ->renderLayout();
00120     }

refundedAction (  ) 

Definition at line 146 of file SalesController.php.

00147     {
00148         $this->_initAction()
00149             ->_setActiveMenu('report/sales/refunded')
00150             ->_addBreadcrumb(Mage::helper('adminhtml')->__('Total Refunded'), Mage::helper('adminhtml')->__('Total Refunded'))
00151             ->_addContent($this->getLayout()->createBlock('adminhtml/report_sales_refunded'))
00152             ->renderLayout();
00153     }

salesAction (  ) 

Definition at line 47 of file SalesController.php.

00048     {
00049         $this->_initAction()
00050             ->_setActiveMenu('report/sales/sales')
00051             ->_addBreadcrumb(Mage::helper('adminhtml')->__('Sales Report'), Mage::helper('adminhtml')->__('Sales Report'))
00052             ->_addContent($this->getLayout()->createBlock('adminhtml/report_sales_sales'))
00053             ->renderLayout();
00054     }

shippingAction (  ) 

Definition at line 212 of file SalesController.php.

00213     {
00214         $this->_initAction()
00215             ->_setActiveMenu('report/sales/shipping')
00216             ->_addBreadcrumb(Mage::helper('adminhtml')->__('Shipping'), Mage::helper('adminhtml')->__('Shipping'))
00217             ->_addContent($this->getLayout()->createBlock('adminhtml/report_sales_shipping'))
00218             ->renderLayout();
00219     }

taxAction (  ) 

Definition at line 80 of file SalesController.php.

00081     {
00082         $this->_initAction()
00083             ->_setActiveMenu('report/sales/tax')
00084             ->_addBreadcrumb(Mage::helper('adminhtml')->__('Tax'), Mage::helper('adminhtml')->__('Tax'))
00085             ->_addContent($this->getLayout()->createBlock('adminhtml/report_sales_tax'))
00086             ->renderLayout();
00087     }


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