Mage_Adminhtml_DashboardController Class Reference

Inheritance diagram for Mage_Adminhtml_DashboardController:

Mage_Adminhtml_Controller_Action Mage_Core_Controller_Varien_Action

List of all members.

Public Member Functions

 indexAction ()
 productsViewedAction ()
 customersNewestAction ()
 customersMostAction ()
 ajaxBlockAction ()
 tunnelAction ()

Protected Member Functions

 _isAllowed ()


Detailed Description

Definition at line 34 of file DashboardController.php.


Member Function Documentation

_isAllowed (  )  [protected]

Reimplemented from Mage_Adminhtml_Controller_Action.

Definition at line 90 of file DashboardController.php.

00091     {
00092         return Mage::getSingleton('admin/session')->isAllowed('dashboard');
00093     }

ajaxBlockAction (  ) 

Definition at line 59 of file DashboardController.php.

00060     {
00061         $output   = '';
00062         $blockTab = $this->getRequest()->getParam('block');
00063         if (in_array($blockTab, array('tab_orders', 'tab_amounts'))) {
00064             $output = $this->getLayout()->createBlock('adminhtml/dashboard_' . $blockTab)->toHtml();
00065         }
00066         $this->getResponse()->setBody($output);
00067         return;
00068     }

customersMostAction (  ) 

Definition at line 54 of file DashboardController.php.

00055     {
00056         $this->getResponse()->setBody($this->getLayout()->createBlock('adminhtml/dashboard_tab_customers_most')->toHtml());
00057     }

customersNewestAction (  ) 

Definition at line 49 of file DashboardController.php.

00050     {
00051         $this->getResponse()->setBody($this->getLayout()->createBlock('adminhtml/dashboard_tab_customers_newest')->toHtml());
00052     }

indexAction (  ) 

Definition at line 36 of file DashboardController.php.

00037     {
00038         $this->loadLayout();
00039         $this->_setActiveMenu('dashboard');
00040         $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Dashboard'), Mage::helper('adminhtml')->__('Dashboard'));
00041         $this->renderLayout();
00042     }

productsViewedAction (  ) 

Definition at line 44 of file DashboardController.php.

00045     {
00046         $this->getResponse()->setBody($this->getLayout()->createBlock('adminhtml/dashboard_tab_products_viewed')->toHtml());
00047     }

tunnelAction (  ) 

Definition at line 70 of file DashboardController.php.

00071     {
00072         $httpClient = new Varien_Http_Client();
00073 
00074         if ($ga = $this->getRequest()->getParam('ga')) {
00075             if ($params = unserialize(base64_decode(urldecode($ga)))) {
00076                 $response = $httpClient->setUri(Mage_Adminhtml_Block_Dashboard_Graph::API_URL)
00077                         ->setParameterGet($params)
00078                         ->setConfig(array('timeout' => 15))
00079                         ->request('GET');
00080 
00081                 $headers = $response->getHeaders();
00082 
00083                 $this->getResponse()
00084                     ->setHeader('Content-type', $headers['Content-type'])
00085                     ->setBody($response->getBody());
00086             }
00087         }
00088     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:11 2009 for Magento by  doxygen 1.5.8