protected function getStoreName($order)
    {
        $storeId = $order->getStoreId();
        if (is_null($storeId)) {
            return $this->getOrder()->getStoreName();
        }
        $store = Mage::app()->getStore($storeId);
        $name = array(
                $store->getWebsite()->getName(),
                $store->getGroup()->getName(),
                $store->getName()
        );
        return implode(', ', $name);
    }
protected function getStoreName($order)
    {
        $storeId = $order->getStoreId();
        if (is_null($storeId)) {
            return $this->getOrder()->getStoreName();
        }
        $store = Mage::app()->getStore($storeId);
        $name = array(
                $store->getWebsite()->getName(),
                $store->getGroup()->getName(),
                $store->getName()
        );
        return implode(', ', $name);
    }
protected function getStoreName ( $ order ) { $ storeId = $ order -> getStoreId ( ) ; if ( is_null ( $ storeId ) ) { return $ this -> getOrder ( ) -> getStoreName ( ) ; } $ store = Mage :: app ( ) -> getStore ( $ storeId ) ; $ name = array ( $ store -> getWebsite ( ) -> getName ( ) , $ store -> getGroup ( ) -> getName ( ) , $ store -> getName ( ) ) ; return implode ( ', ' , $ name ) ; }
Returns the name of the website, store and store view the order was placed in.

@param Mage_Sales_Model_Order $order The order to return info from
@return String The name of the website, store and store view the order was placed in
Returns the name of the website store and store view the order was placed in .