public function getUrl($locale = null)
    {
        if (null === $locale) {
            $locale = $this->getLocale();
        }

        return URL::getInstance()->retrieve($this->getRewrittenUrlViewName(), $this->getId(), $locale)->toString();
    }
public function getUrl($locale = null)
    {
        if (null === $locale) {
            $locale = $this->getLocale();
        }

        return URL::getInstance()->retrieve($this->getRewrittenUrlViewName(), $this->getId(), $locale)->toString();
    }
public function getUrl ( $ locale = null ) { if ( null === $ locale ) { $ locale = $ this -> getLocale ( ) ; } return URL :: getInstance ( ) -> retrieve ( $ this -> getRewrittenUrlViewName ( ) , $ this -> getId ( ) , $ locale ) -> toString ( ) ; }
Get the object URL for the given locale, rewritten if rewriting is enabled.

@param string $locale a valid locale (e.g. en_US)
Get the object URL for the given locale rewritten if rewriting is enabled .