Public Member Functions | |
__construct () | |
getSwitchUrl () | |
Protected Member Functions | |
_prepareLayout () | |
Protected Attributes | |
$_locale |
Definition at line 27 of file Dashboard.php.
__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 }
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
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 }
$_locale [protected] |
Definition at line 29 of file Dashboard.php.