Beispiel #1
0
 /** Get the HTTP Client object used to fetch RDF data
  *
  * If no HTTP Client has previously been set, then a new
  * default (EasyRdf_Http_Client) client will be created.
  *
  * @return object mixed The HTTP client object
  */
 public static function getHttpClient()
 {
     if (!self::$_httpClient) {
         self::$_httpClient = new EasyRdf_Http_Client();
     }
     return self::$_httpClient;
 }
Beispiel #2
0
 /** Get the HTTP Client object used to fetch RDF data
  *
  * If no HTTP Client has previously been set, then a new
  * default (EasyRdf_Http_Client) client will be created.
  *
  * @return object mixed The HTTP client object
  */
 public static function getHttpClient()
 {
     if (!self::$_httpClient) {
         require_once "EasyRdf/Http/Client.php";
         self::$_httpClient = new EasyRdf_Http_Client();
     }
     return self::$_httpClient;
 }