Public Member Functions | |
_initAction () | |
searchAction () | |
exportSearchCsvAction () | |
exportSearchExcelAction () | |
Protected Member Functions | |
_isAllowed () |
Definition at line 34 of file ReportController.php.
_initAction | ( | ) |
Definition at line 36 of file ReportController.php.
00037 { 00038 $this->loadLayout() 00039 ->_addBreadcrumb(Mage::helper('adminhtml')->__('Reports'), Mage::helper('adminhtml')->__('Reports')); 00040 return $this; 00041 }
_isAllowed | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Controller_Action.
Definition at line 130 of file ReportController.php.
00131 { 00132 switch ($this->getRequest()->getActionName()) { 00133 case 'search': 00134 return Mage::getSingleton('admin/session')->isAllowed('report/search'); 00135 break; 00136 /* 00137 case 'customers': 00138 return Mage::getSingleton('admin/session')->isAllowed('report/shopcart'); 00139 break; 00140 */ 00141 default: 00142 return Mage::getSingleton('admin/session')->isAllowed('report'); 00143 break; 00144 } 00145 }
exportSearchCsvAction | ( | ) |
Export search report grid to CSV format
Definition at line 92 of file ReportController.php.
00093 { 00094 $fileName = 'search.csv'; 00095 $content = $this->getLayout()->createBlock('adminhtml/report_search_grid') 00096 ->getCsv(); 00097 00098 $this->_prepareDownloadResponse($fileName, $content); 00099 }
exportSearchExcelAction | ( | ) |
Export search report to Excel XML format
Definition at line 104 of file ReportController.php.
00105 { 00106 $fileName = 'search.xml'; 00107 $content = $this->getLayout()->createBlock('adminhtml/report_search_grid') 00108 ->getExcel($fileName); 00109 00110 $this->_prepareDownloadResponse($fileName, $content); 00111 }
searchAction | ( | ) |
Definition at line 78 of file ReportController.php.
00079 { 00080 Mage::dispatchEvent('on_view_report', array('report' => 'search')); 00081 00082 $this->_initAction() 00083 ->_setActiveMenu('report/search') 00084 ->_addBreadcrumb(Mage::helper('adminhtml')->__('Search Terms'), Mage::helper('adminhtml')->__('Search Terms')) 00085 ->_addContent($this->getLayout()->createBlock('adminhtml/report_search')) 00086 ->renderLayout(); 00087 }