public function retrieve($view, $viewId, $viewLocale)
    {
        if (ConfigQuery::isRewritingEnable()) {
            $this->retriever->loadViewUrl($view, $viewLocale, $viewId);
        } else {
            $allParametersWithoutView = array();
            $allParametersWithoutView['lang'] = $viewLocale;
            if (null !== $viewId) {
                $allParametersWithoutView[$view . '_id'] = $viewId;
            }
            $this->retriever->rewrittenUrl = null;
            $this->retriever->url = URL::getInstance()->viewUrl($view, $allParametersWithoutView);
        }

        return $this->retriever;
    }
public function retrieve($view, $viewId, $viewLocale)
    {
        if (ConfigQuery::isRewritingEnable()) {
            $this->retriever->loadViewUrl($view, $viewLocale, $viewId);
        } else {
            $allParametersWithoutView = array();
            $allParametersWithoutView['lang'] = $viewLocale;
            if (null !== $viewId) {
                $allParametersWithoutView[$view . '_id'] = $viewId;
            }
            $this->retriever->rewrittenUrl = null;
            $this->retriever->url = URL::getInstance()->viewUrl($view, $allParametersWithoutView);
        }

        return $this->retriever;
    }
public function retrieve ( $ view , $ viewId , $ viewLocale ) { if ( ConfigQuery :: isRewritingEnable ( ) ) { $ this -> retriever -> loadViewUrl ( $ view , $ viewLocale , $ viewId ) ; } else { $ allParametersWithoutView = array ( ) ; $ allParametersWithoutView [ 'lang' ] = $ viewLocale ; if ( null !== $ viewId ) { $ allParametersWithoutView [ $ view . '_id' ] = $ viewId ; } $ this -> retriever -> rewrittenUrl = null ; $ this -> retriever -> url = URL :: getInstance ( ) -> viewUrl ( $ view , $ allParametersWithoutView ) ; } return $ this -> retriever ; }
Retrieve a rewritten URL from a view, a view id and a locale

@param $view
@param $viewId
@param $viewLocale

@return RewritingRetriever You can access $url and $rewrittenUrl properties
Retrieve a rewritten URL from a view a view id and a locale