Mage_Adminhtml_Helper_Dashboard_Data Class Reference

Inheritance diagram for Mage_Adminhtml_Helper_Dashboard_Data:

Mage_Core_Helper_Data Mage_Core_Helper_Abstract

List of all members.

Public Member Functions

 getStores ()
 countStores ()
 getDatePeriods ()

Protected Attributes

 $_locale = null
 $_stores = null


Detailed Description

Definition at line 35 of file Data.php.


Member Function Documentation

countStores (  ) 

Definition at line 49 of file Data.php.

00050     {
00051         return sizeof($this->_stores->getItems());
00052     }

getDatePeriods (  ) 

Definition at line 54 of file Data.php.

00055     {
00056         return array(
00057             '24h'=>$this->__('Last 24 hours'),
00058             '7d'=>$this->__('Last 7 days'),
00059             '1m'=>$this->__('Last Month'),
00060             '1y'=>$this->__('YTD'),
00061             '2y'=>$this->__('2YTD')
00062         );
00063     }

getStores (  ) 

Definition at line 40 of file Data.php.

00041     {
00042         if(!$this->_stores) {
00043             $this->_stores = Mage::app()->getStore()->getResourceCollection()->load();
00044         }
00045 
00046         return $this->_stores;
00047     }


Member Data Documentation

$_locale = null [protected]

Definition at line 37 of file Data.php.

$_stores = null [protected]

Definition at line 38 of file Data.php.


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

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