public function getQuery($toArray = false)
    {
        if ($toArray) {
            return $this->vars;
        }

        // If the query is empty build it first
        if (is_null($this->query)) {
            $this->query = UriHelper::buildQuery($this->vars);
        }

        return $this->query;
    }
public function getQuery($toArray = false)
    {
        if ($toArray) {
            return $this->vars;
        }

        // If the query is empty build it first
        if (is_null($this->query)) {
            $this->query = UriHelper::buildQuery($this->vars);
        }

        return $this->query;
    }
public function getQuery ( $ toArray = false ) { if ( $ toArray ) { return $ this -> vars ; } // If the query is empty build it first if ( is_null ( $ this -> query ) ) { $ this -> query = UriHelper :: buildQuery ( $ this -> vars ) ; } return $ this -> query ; }
Returns flat query string.

@param   boolean $toArray True to return the query as a key => value pair array.

@return  string   Query string.

@since   2.0
Returns flat query string .