getStores(); } /** * Returns stores as array * * @return array */ public function getAsArray(){ $stores = array(); foreach($this->getStores() as $id => $store){ $stores[$id] = $store->getData(); } return $stores; } /** * Returns available stores as selection for dropdown * * @return array */ public function getOptionsArray(){ $stores = array(); $stores[] = array('value' => 0,'label' => $this->__("Choose ...")); foreach($this->getStores() as $id => $val){ $stores[] = array('value' => $id,'label' => Mage::app()->getStore($id)->getName()); } return $stores; } }