Mage_Adminhtml_Helper_Dashboard_Abstract Class Reference

Inheritance diagram for Mage_Adminhtml_Helper_Dashboard_Abstract:

Mage_Core_Helper_Data Mage_Core_Helper_Abstract Mage_Adminhtml_Helper_Dashboard_Order

List of all members.

Public Member Functions

 getCollection ()
 getItems ()
 getCount ()
 getColumn ($index)
 setParam ($name, $value)
 setParams (array $params)
 getParam ($name)
 getParams ()

Protected Member Functions

 _initCollection ()

Protected Attributes

 $_collection
 $_params = array()


Detailed Description

Definition at line 35 of file Abstract.php.


Member Function Documentation

_initCollection (  )  [abstract, protected]

getCollection (  ) 

Definition at line 51 of file Abstract.php.

00052         {
00053             if(is_null($this->_collection)) {
00054                 $this->_initCollection();
00055             }
00056             return $this->_collection;
00057         }

getColumn ( index  ) 

Definition at line 76 of file Abstract.php.

00077         {
00078             $result = array();
00079             foreach ($this->getItems() as $item) {
00080                 if (is_array($item)) {
00081                     if(isset($item[$index])) {
00082                         $result[] = $item[$index];
00083                     } else {
00084                         $result[] = null;
00085                     }
00086                 } elseif ($item instanceof Varien_Object) {
00087                     $result[] = $item->getData($index);
00088                 } else {
00089                     $result[] = null;
00090                 }
00091             }
00092             return $result;
00093         }

getCount (  ) 

Definition at line 71 of file Abstract.php.

00072         {
00073             return sizeof($this->getItems());
00074         }

getItems (  ) 

Returns collection items

Returns:
array

Definition at line 66 of file Abstract.php.

00067         {
00068             return is_array($this->getCollection()) ? $this->getCollection() : $this->getCollection()->getItems();
00069         }

getParam ( name  ) 

Definition at line 105 of file Abstract.php.

00106         {
00107             if(isset($this->_params[$name])) {
00108                 return $this->_params[$name];
00109             }
00110 
00111             return null;
00112         }

getParams (  ) 

Definition at line 114 of file Abstract.php.

00115         {
00116             return $this->_params;
00117         }

setParam ( name,
value 
)

Definition at line 95 of file Abstract.php.

00096         {
00097             $this->_params[$name] = $value;
00098         }

setParams ( array params  ) 

Definition at line 100 of file Abstract.php.

00101         {
00102             $this->_params = $params;
00103         }


Member Data Documentation

$_collection [protected]

Definition at line 42 of file Abstract.php.

$_params = array() [protected]

Definition at line 49 of file Abstract.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