Public Member Functions | |
_initAction () | |
customerAction () | |
exportCustomerCsvAction () | |
exportCustomerExcelAction () | |
productAction () | |
exportProductCsvAction () | |
exportProductExcelAction () | |
productDetailAction () | |
exportProductDetailCsvAction () | |
exportProductDetailExcelAction () | |
Protected Member Functions | |
_isAllowed () |
Definition at line 34 of file ReviewController.php.
_initAction | ( | ) |
Definition at line 36 of file ReviewController.php.
00037 { 00038 $act = $this->getRequest()->getActionName(); 00039 if(!$act) 00040 $act = 'default'; 00041 00042 $this->loadLayout() 00043 ->_addBreadcrumb(Mage::helper('reports')->__('Reports'), Mage::helper('reports')->__('Reports')) 00044 ->_addBreadcrumb(Mage::helper('reports')->__('Review'), Mage::helper('reports')->__('Reviews')); 00045 return $this; 00046 }
_isAllowed | ( | ) | [protected] |
Reimplemented from Mage_Adminhtml_Controller_Action.
Definition at line 148 of file ReviewController.php.
00149 { 00150 switch ($this->getRequest()->getActionName()) { 00151 case 'customer': 00152 return Mage::getSingleton('admin/session')->isAllowed('report/review/customer'); 00153 break; 00154 case 'product': 00155 return Mage::getSingleton('admin/session')->isAllowed('report/review/product'); 00156 break; 00157 default: 00158 return Mage::getSingleton('admin/session')->isAllowed('report/review'); 00159 break; 00160 } 00161 }
customerAction | ( | ) |
Definition at line 48 of file ReviewController.php.
00049 { 00050 $this->_initAction() 00051 ->_setActiveMenu('report/review/customer') 00052 ->_addBreadcrumb(Mage::helper('reports')->__('Customers Report'), Mage::helper('reports')->__('Customers Report')) 00053 ->_addContent($this->getLayout()->createBlock('adminhtml/report_review_customer')) 00054 ->renderLayout(); 00055 }
exportCustomerCsvAction | ( | ) |
Export review customer report to CSV format
Definition at line 60 of file ReviewController.php.
00061 { 00062 $fileName = 'review_customer.csv'; 00063 $content = $this->getLayout()->createBlock('adminhtml/report_review_customer_grid') 00064 ->getCsv(); 00065 00066 $this->_prepareDownloadResponse($fileName, $content); 00067 }
exportCustomerExcelAction | ( | ) |
Export review customer report to Excel XML format
Definition at line 72 of file ReviewController.php.
00073 { 00074 $fileName = 'review_customer.xml'; 00075 $content = $this->getLayout()->createBlock('adminhtml/report_review_customer_grid') 00076 ->getExcel($fileName); 00077 00078 $this->_prepareDownloadResponse($fileName, $content); 00079 }
exportProductCsvAction | ( | ) |
Export review product report to CSV format
Definition at line 93 of file ReviewController.php.
00094 { 00095 $fileName = 'review_product.csv'; 00096 $content = $this->getLayout()->createBlock('adminhtml/report_review_product_grid') 00097 ->getCsv(); 00098 00099 $this->_prepareDownloadResponse($fileName, $content); 00100 }
exportProductDetailCsvAction | ( | ) |
Export review product detail report to CSV format
Definition at line 127 of file ReviewController.php.
00128 { 00129 $fileName = 'review_product_detail.csv'; 00130 $content = $this->getLayout()->createBlock('adminhtml/report_review_detail_grid') 00131 ->getCsv(); 00132 00133 $this->_prepareDownloadResponse($fileName, $content); 00134 }
exportProductDetailExcelAction | ( | ) |
Export review product detail report to ExcelXML format
Definition at line 139 of file ReviewController.php.
00140 { 00141 $fileName = 'review_product_detail.xml'; 00142 $content = $this->getLayout()->createBlock('adminhtml/report_review_detail_grid') 00143 ->getExcel($fileName); 00144 00145 $this->_prepareDownloadResponse($fileName, $content); 00146 }
exportProductExcelAction | ( | ) |
Export review product report to Excel XML format
Definition at line 105 of file ReviewController.php.
00106 { 00107 $fileName = 'review_product.xml'; 00108 $content = $this->getLayout()->createBlock('adminhtml/report_review_product_grid') 00109 ->getExcel($fileName); 00110 00111 $this->_prepareDownloadResponse($fileName, $content); 00112 }
productAction | ( | ) |
Definition at line 81 of file ReviewController.php.
00082 { 00083 $this->_initAction() 00084 ->_setActiveMenu('report/review/product') 00085 ->_addBreadcrumb(Mage::helper('reports')->__('Products Report'), Mage::helper('reports')->__('Products Report')) 00086 ->_addContent($this->getLayout()->createBlock('adminhtml/report_review_product')) 00087 ->renderLayout(); 00088 }
productDetailAction | ( | ) |
Definition at line 114 of file ReviewController.php.
00115 { 00116 $this->_initAction() 00117 ->_setActiveMenu('report/review/productDetail') 00118 ->_addBreadcrumb(Mage::helper('reports')->__('Products Report'), Mage::helper('reports')->__('Products Report')) 00119 ->_addBreadcrumb(Mage::helper('reports')->__('Product Reviews'), Mage::helper('reports')->__('Product Reviews')) 00120 ->_addContent($this->getLayout()->createBlock('adminhtml/report_review_detail')) 00121 ->renderLayout(); 00122 }