original_string: public function get_query_string($escaped = true, array $overrideparams = null) {
          $arr = array();
          if ($overrideparams !== null) {
              $params = $this->merge_overrideparams($overrideparams);
          } else {
              $params = $this->params;
          }
          foreach ($params as $key => $val) {
              if (is_array($val)) {
                  foreach ($val as $index => $value) {
                      $arr[] = rawurlencode($key.'['.$index.']')."=".rawurlencode($value);
                  }
              } else {
                  if (isset($val) && $val !== '') {
                      $arr[] = rawurlencode($key)."=".rawurlencode($val);
                  } else {
                      $arr[] = rawurlencode($key);
                  }
              }
          }
          if ($escaped) {
              return implode('&amp;', $arr);
          } else {
              return implode('&', $arr);
          }
      }
code: public function get_query_string($escaped = true, array $overrideparams = null) {
          $arr = array();
          if ($overrideparams !== null) {
              $params = $this->merge_overrideparams($overrideparams);
          } else {
              $params = $this->params;
          }
          foreach ($params as $key => $val) {
              if (is_array($val)) {
                  foreach ($val as $index => $value) {
                      $arr[] = rawurlencode($key.'['.$index.']')."=".rawurlencode($value);
                  }
              } else {
                  if (isset($val) && $val !== '') {
                      $arr[] = rawurlencode($key)."=".rawurlencode($val);
                  } else {
                      $arr[] = rawurlencode($key);
                  }
              }
          }
          if ($escaped) {
              return implode('&amp;', $arr);
          } else {
              return implode('&', $arr);
          }
      }
code_tokens: public function get_query_string ( $ escaped = true , array $ overrideparams = null ) { $ arr = array ( ) ; if ( $ overrideparams !== null ) { $ params = $ this -> merge_overrideparams ( $ overrideparams ) ; } else { $ params = $ this -> params ; } foreach ( $ params as $ key => $ val ) { if ( is_array ( $ val ) ) { foreach ( $ val as $ index => $ value ) { $ arr [ ] = rawurlencode ( $ key . '[' . $ index . ']' ) . "=" . rawurlencode ( $ value ) ; } } else { if ( isset ( $ val ) && $ val !== '' ) { $ arr [ ] = rawurlencode ( $ key ) . "=" . rawurlencode ( $ val ) ; } else { $ arr [ ] = rawurlencode ( $ key ) ; } } } if ( $ escaped ) { return implode ( '&amp;' , $ arr ) ; } else { return implode ( '&' , $ arr ) ; } }
docstring: Get the params as as a query string.
  
  This method should not be used outside of this method.
  
  @param bool $escaped Use &amp; as params separator instead of plain &
  @param array $overrideparams params to add to the output params, these
  override existing ones with the same name.
  @return string query string that can be added to a url.
docstring_tokens: Get the params as as a query string .