public static function EasyRdf_Http::setDefaultHttpClient

Set the HTTP Client object used to fetch RDF data

Parameters

object mixed $httpClient The new HTTP client object:

Return value

object mixed The new HTTP client object

File

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

Class

EasyRdf_Http
Static class to set the HTTP client used by EasyRdf

Code

public static function setDefaultHttpClient($httpClient) {
  if (!is_object($httpClient) or !($httpClient instanceof Zend_Http_Client or $httpClient instanceof EasyRdf_Http_Client)) {
    throw new InvalidArgumentException("\$httpClient should be an object of class Zend_Http_Client or EasyRdf_Http_Client");
  }
  return self::$defaultHttpClient = $httpClient;
}