public function getQueryString(array $new_params = [])
    {
        $params = $_GET;
        if (!empty($this->input)) {
            $params[$this->getKey()] = $this->input;
        }
        if (!empty($new_params)) {
            if (empty($params[$this->getKey()])) {
                $params[$this->getKey()] = [];
            }
            foreach ($new_params as $key => $value) {
                $params[$this->getKey()][$key] = $value;
            }
        }
        return http_build_query($params);
    }
public function getQueryString(array $new_params = [])
    {
        $params = $_GET;
        if (!empty($this->input)) {
            $params[$this->getKey()] = $this->input;
        }
        if (!empty($new_params)) {
            if (empty($params[$this->getKey()])) {
                $params[$this->getKey()] = [];
            }
            foreach ($new_params as $key => $value) {
                $params[$this->getKey()][$key] = $value;
            }
        }
        return http_build_query($params);
    }
public function getQueryString ( array $ new_params = [ ] ) { $ params = $ _GET ; if ( ! empty ( $ this -> input ) ) { $ params [ $ this -> getKey ( ) ] = $ this -> input ; } if ( ! empty ( $ new_params ) ) { if ( empty ( $ params [ $ this -> getKey ( ) ] ) ) { $ params [ $ this -> getKey ( ) ] = [ ] ; } foreach ( $ new_params as $ key => $ value ) { $ params [ $ this -> getKey ( ) ] [ $ key ] = $ value ; } } return http_build_query ( $ params ) ; }
Returns current query string extended by specified GET parameters.

@param array $new_params
@return string
Returns current query string extended by specified GET parameters .