public function EasyRdf_Http_Client::setParameterGet

Set a GET parameter for the request.

Parameters

string $name:

string $value:

Return value

EasyRdf_Http_Client

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Client.php, line 255

Class

EasyRdf_Http_Client
This class is an implemetation of an HTTP client in PHP. It supports basic HTTP 1.0 and 1.1 requests. For a more complete implementation try Zend_Http_Client.

Code

public function setParameterGet($name, $value = null) {
  if ($value === null) {
    if (isset($this->paramsGet[$name])) {
      unset($this->paramsGet[$name]);
    }
  }
  else {
    $this->paramsGet[$name] = $value;
  }
  return $this;
}