public function getStores($langCode = null)
    {
        $stores = array();
        foreach (Mage::app()->getWebsites() as $website) {
            $stores = array_replace($stores, $this->getWebsiteStores($website, $langCode));
        }
        return $stores;
    }
public function getStores($langCode = null)
    {
        $stores = array();
        foreach (Mage::app()->getWebsites() as $website) {
            $stores = array_replace($stores, $this->getWebsiteStores($website, $langCode));
        }
        return $stores;
    }
public function getStores ( $ langCode = null ) { $ stores = array ( ) ; foreach ( Mage :: app ( ) -> getWebsites ( ) as $ website ) { $ stores = array_replace ( $ stores , $ this -> getWebsiteStores ( $ website , $ langCode ) ) ; } return $ stores ; }
Return an array of stores and attach a language code to them, Varien_Object style
@param string $langCode (optional) if passed, only stores using that langCode are returned.
@return array of Mage_Core_Model_Store, keyed by StoreId. Each store has a new magic getter 'getLanguageCode()'
Return an array of stores and attach a language code to them Varien_Object style