
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() | |
Definition at line 35 of file Abstract.php.
| _initCollection | ( | ) | [abstract, protected] |
Reimplemented in Mage_Adminhtml_Helper_Dashboard_Order.
| 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 | ( | ) |
| getItems | ( | ) |
Returns collection items
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 | ( | ) |
| setParam | ( | $ | name, | |
| $ | value | |||
| ) |
| setParams | ( | array $ | params | ) |
$_collection [protected] |
Definition at line 42 of file Abstract.php.
$_params = array() [protected] |
Definition at line 49 of file Abstract.php.
1.5.8