Mage_Adminhtml_Report_TagController Class Reference

Inheritance diagram for Mage_Adminhtml_Report_TagController:

Mage_Adminhtml_Controller_Action Mage_Core_Controller_Varien_Action

List of all members.

Public Member Functions

 _initAction ()
 customerAction ()
 exportCustomerCsvAction ()
 exportCustomerExcelAction ()
 productAction ()
 exportProductCsvAction ()
 exportProductExcelAction ()
 popularAction ()
 exportPopularCsvAction ()
 exportPopularExcelAction ()
 customerDetailAction ()
 exportCustomerDetailCsvAction ()
 exportCustomerDetailExcelAction ()
 productDetailAction ()
 exportProductDetailCsvAction ()
 exportProductDetailExcelAction ()
 tagDetailAction ()
 exportTagDetailCsvAction ()
 exportTagDetailExcelAction ()

Protected Member Functions

 _isAllowed ()


Detailed Description

Definition at line 34 of file TagController.php.


Member Function Documentation

_initAction (  ) 

Definition at line 36 of file TagController.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')->__('Tag'), Mage::helper('reports')->__('Tag'));
00045         return $this;
00046     }

_isAllowed (  )  [protected]

Reimplemented from Mage_Adminhtml_Controller_Action.

Definition at line 250 of file TagController.php.

00251     {
00252         switch ($this->getRequest()->getActionName()) {
00253             case 'customer':
00254                 return Mage::getSingleton('admin/session')->isAllowed('report/tags/customer');
00255                 break;
00256             case 'product':
00257                 return Mage::getSingleton('admin/session')->isAllowed('report/tags/product');
00258                 break;
00259             case 'productAll':
00260                 return Mage::getSingleton('admin/session')->isAllowed('report/tags/product');
00261                 break;
00262             case 'popular':
00263                 return Mage::getSingleton('admin/session')->isAllowed('report/tags/popular');
00264                 break;
00265             default:
00266                 return Mage::getSingleton('admin/session')->isAllowed('report/tags');
00267                 break;
00268         }
00269     }

customerAction (  ) 

Definition at line 48 of file TagController.php.

00049     {
00050         $this->_initAction()
00051             ->_setActiveMenu('report/tag/customer')
00052             ->_addBreadcrumb(Mage::helper('reports')->__('Customers Report'), Mage::helper('reports')->__('Customers Report'))
00053             ->_addContent($this->getLayout()->createBlock('adminhtml/report_tag_customer'))
00054             ->renderLayout();
00055     }

customerDetailAction (  ) 

Definition at line 148 of file TagController.php.

00149     {
00150         $this->_initAction()
00151             ->_setActiveMenu('report/tag/customerDetail')
00152             ->_addBreadcrumb(Mage::helper('reports')->__('Customers Report'), Mage::helper('reports')->__('Customers Report'))
00153             ->_addBreadcrumb(Mage::helper('reports')->__('Customer Tags'), Mage::helper('reports')->__('Customer Tags'))
00154             ->_addContent($this->getLayout()->createBlock('adminhtml/report_tag_customer_detail'))
00155             ->renderLayout();
00156     }

exportCustomerCsvAction (  ) 

Export customer's tags report to CSV format

Definition at line 60 of file TagController.php.

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

exportCustomerDetailCsvAction (  ) 

Export customer's tags detail report to CSV format

Definition at line 161 of file TagController.php.

00162     {
00163         $fileName   = 'tag_customer_detail.csv';
00164         $content    = $this->getLayout()->createBlock('adminhtml/report_tag_customer_detail_grid')
00165             ->getCsv();
00166 
00167         $this->_prepareDownloadResponse($fileName, $content);
00168     }

exportCustomerDetailExcelAction (  ) 

Export customer's tags detail report to Excel XML format

Definition at line 173 of file TagController.php.

00174     {
00175         $fileName   = 'tag_customer_detail.xml';
00176         $content    = $this->getLayout()->createBlock('adminhtml/report_tag_customer_detail_grid')
00177             ->getExcel($fileName);
00178 
00179         $this->_prepareDownloadResponse($fileName, $content);
00180     }

exportCustomerExcelAction (  ) 

Export customer's tags report to Excel XML format

Definition at line 72 of file TagController.php.

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

exportPopularCsvAction (  ) 

Export popular tags report to CSV format

Definition at line 127 of file TagController.php.

00128     {
00129         $fileName   = 'tag_popular.csv';
00130         $content    = $this->getLayout()->createBlock('adminhtml/report_tag_popular_grid')
00131             ->getCsv();
00132 
00133         $this->_prepareDownloadResponse($fileName, $content);
00134     }

exportPopularExcelAction (  ) 

Export popular tags report to Excel XML format

Definition at line 139 of file TagController.php.

00140     {
00141         $fileName   = 'tag_popular.xml';
00142         $content    = $this->getLayout()->createBlock('adminhtml/report_tag_popular_grid')
00143             ->getExcel($fileName);
00144 
00145         $this->_prepareDownloadResponse($fileName, $content);
00146     }

exportProductCsvAction (  ) 

Export product's tags report to CSV format

Definition at line 93 of file TagController.php.

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

exportProductDetailCsvAction (  ) 

Export product's tags detail report to CSV format

Definition at line 195 of file TagController.php.

00196     {
00197         $fileName   = 'tag_product_detail.csv';
00198         $content    = $this->getLayout()->createBlock('adminhtml/report_tag_product_detail_grid')
00199             ->getCsv();
00200 
00201         $this->_prepareDownloadResponse($fileName, $content);
00202     }

exportProductDetailExcelAction (  ) 

Export product's tags detail report to Excel XML format

Definition at line 207 of file TagController.php.

00208     {
00209         $fileName   = 'tag_product_detail.xml';
00210         $content    = $this->getLayout()->createBlock('adminhtml/report_tag_product_detail_grid')
00211             ->getExcel($fileName);
00212 
00213         $this->_prepareDownloadResponse($fileName, $content);
00214     }

exportProductExcelAction (  ) 

Export product's tags report to Excel XML format

Definition at line 105 of file TagController.php.

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

exportTagDetailCsvAction (  ) 

Export tag detail report to CSV format

Definition at line 229 of file TagController.php.

00230     {
00231         $fileName   = 'tag_detail.csv';
00232         $content    = $this->getLayout()->createBlock('adminhtml/report_tag_popular_detail_grid')
00233             ->getCsv();
00234 
00235         $this->_prepareDownloadResponse($fileName, $content);
00236     }

exportTagDetailExcelAction (  ) 

Export tag detail report to Excel XML format

Definition at line 241 of file TagController.php.

00242     {
00243         $fileName   = 'tag_detail.xml';
00244         $content    = $this->getLayout()->createBlock('adminhtml/report_tag_popular_detail_grid')
00245             ->getExcel($fileName);
00246 
00247         $this->_prepareDownloadResponse($fileName, $content);
00248     }

popularAction (  ) 

Definition at line 115 of file TagController.php.

00116     {
00117         $this->_initAction()
00118             ->_setActiveMenu('report/tag/popular')
00119             ->_addBreadcrumb(Mage::helper('reports')->__('Popular Tags'), Mage::helper('reports')->__('Popular Tags'))
00120             ->_addContent($this->getLayout()->createBlock('adminhtml/report_tag_popular'))
00121             ->renderLayout();
00122     }

productAction (  ) 

Definition at line 81 of file TagController.php.

00082     {
00083         $this->_initAction()
00084             ->_setActiveMenu('report/tag/product')
00085             ->_addBreadcrumb(Mage::helper('reports')->__('Poducts Report'), Mage::helper('reports')->__('Products Report'))
00086             ->_addContent($this->getLayout()->createBlock('adminhtml/report_tag_product'))
00087             ->renderLayout();
00088     }

productDetailAction (  ) 

Definition at line 182 of file TagController.php.

00183     {
00184         $this->_initAction()
00185             ->_setActiveMenu('report/tag/productDetail')
00186             ->_addBreadcrumb(Mage::helper('reports')->__('Products Report'), Mage::helper('reports')->__('Products Report'))
00187             ->_addBreadcrumb(Mage::helper('reports')->__('Product Tags'), Mage::helper('reports')->__('Product Tags'))
00188             ->_addContent($this->getLayout()->createBlock('adminhtml/report_tag_product_detail'))
00189             ->renderLayout();
00190     }

tagDetailAction (  ) 

Definition at line 216 of file TagController.php.

00217     {
00218         $this->_initAction()
00219             ->_setActiveMenu('report/tag/tagDetail')
00220             ->_addBreadcrumb(Mage::helper('reports')->__('Popular Tags'), Mage::helper('reports')->__('Popular Tags'))
00221             ->_addBreadcrumb(Mage::helper('reports')->__('Tag Detail'), Mage::helper('reports')->__('Tag Detail'))
00222             ->_addContent($this->getLayout()->createBlock('adminhtml/report_tag_popular_detail'))
00223             ->renderLayout();
00224     }


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