Mage_Adminhtml_Block_Dashboard Class Reference

Inheritance diagram for Mage_Adminhtml_Block_Dashboard:

Mage_Adminhtml_Block_Template Mage_Core_Block_Template Mage_Core_Block_Abstract Varien_Object

List of all members.

Public Member Functions

 __construct ()
 getSwitchUrl ()

Protected Member Functions

 _prepareLayout ()

Protected Attributes

 $_locale


Detailed Description

Definition at line 27 of file Dashboard.php.


Constructor & Destructor Documentation

__construct (  ) 

Constructor

By default is looking for first argument as array and assignes it as object attributes This behaviour may change in child classes

Reimplemented from Varien_Object.

Definition at line 31 of file Dashboard.php.

00032     {
00033         parent::__construct();
00034         $this->setTemplate('dashboard/index.phtml');
00035 
00036     }


Member Function Documentation

_prepareLayout (  )  [protected]

Preparing global layout

You can redefine this method in child classes for changin layout

Returns:
Mage_Core_Block_Abstract

Reimplemented from Mage_Core_Block_Abstract.

Definition at line 38 of file Dashboard.php.

00039     {
00040         $this->setChild('lastOrders',
00041                 $this->getLayout()->createBlock('adminhtml/dashboard_orders_grid')
00042         );
00043 
00044         $this->setChild('totals',
00045                 $this->getLayout()->createBlock('adminhtml/dashboard_totals')
00046         );
00047 
00048         $this->setChild('sales',
00049                 $this->getLayout()->createBlock('adminhtml/dashboard_sales')
00050         );
00051 
00052         $this->setChild('lastSearches',
00053                 $this->getLayout()->createBlock('adminhtml/dashboard_searches_last')
00054         );
00055 
00056         $this->setChild('topSearches',
00057                 $this->getLayout()->createBlock('adminhtml/dashboard_searches_top')
00058         );
00059 
00060         $this->setChild('diagrams',
00061                 $this->getLayout()->createBlock('adminhtml/dashboard_diagrams')
00062         );
00063 
00064         $this->setChild('grids',
00065                 $this->getLayout()->createBlock('adminhtml/dashboard_grids')
00066         );
00067 
00068         parent::_prepareLayout();
00069     }

getSwitchUrl (  ) 

Definition at line 71 of file Dashboard.php.

00072     {
00073         if ($url = $this->getData('switch_url')) {
00074             return $url;
00075         }
00076         return $this->getUrl('*/*/*', array('_current'=>true, 'period'=>null));
00077     }


Member Data Documentation

$_locale [protected]

Definition at line 29 of file Dashboard.php.


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

Generated on Sat Jul 4 17:22:48 2009 for Magento by  doxygen 1.5.8