You are here

public function EasyRdf_Http_Client::setParameterGet in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Client.php \EasyRdf_Http_Client::setParameterGet()

Set a GET parameter for the request.

Parameters

string $name:

string $value:

Return value

EasyRdf_Http_Client

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Client.php, line 254

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;
}