public function getRewrittenUrl($locale)
    {
        $rewritingUrl = RewritingUrlQuery::create()
            ->filterByViewLocale($locale)
            ->filterByView($this->getRewrittenUrlViewName())
            ->filterByViewId($this->getId())
            ->filterByRedirected(null)
            ->findOne()
        ;

        if ($rewritingUrl) {
            $url = $rewritingUrl->getUrl();
        } else {
            $url = null;
        }

        return $url;
    }
public function getRewrittenUrl($locale)
    {
        $rewritingUrl = RewritingUrlQuery::create()
            ->filterByViewLocale($locale)
            ->filterByView($this->getRewrittenUrlViewName())
            ->filterByViewId($this->getId())
            ->filterByRedirected(null)
            ->findOne()
        ;

        if ($rewritingUrl) {
            $url = $rewritingUrl->getUrl();
        } else {
            $url = null;
        }

        return $url;
    }
public function getRewrittenUrl ( $ locale ) { $ rewritingUrl = RewritingUrlQuery :: create ( ) -> filterByViewLocale ( $ locale ) -> filterByView ( $ this -> getRewrittenUrlViewName ( ) ) -> filterByViewId ( $ this -> getId ( ) ) -> filterByRedirected ( null ) -> findOne ( ) ; if ( $ rewritingUrl ) { $ url = $ rewritingUrl -> getUrl ( ) ; } else { $ url = null ; } return $ url ; }
return the rewritten URL for the given locale

@param  string $locale a valid locale (e.g. en_US)
@return null
return the rewritten URL for the given locale