예제 #1
0
파일: Sag.php 프로젝트: ndejong/sag
 /**
  * @param string $host (OPTIONAL) The host's IP or address of the Couch we're
  * connecting to. Defaults to '127.0.0.1'.
  *
  * @param string $port (OPTIONAL) The host's port that Couch is listening on.
  * Defaults to '5984'.
  * 
  * @param string $http_adapter_type (OPTIONAL) the Sag HTTP adapter to use, can
  * be either HTTP_NATIVE_SOCKETS or HTTP_CURL.
  * Defaults to HTTP_NATIVE_SOCKETS
  */
 public function __construct($host = "127.0.0.1", $port = "5984", $http_adapter_type = "HTTP_NATIVE_SOCKETS")
 {
     SagConfigurationCheck::run();
     $this->host = $host;
     $this->port = $port;
     //sets to the default by ... default
     $this->setHTTPAdapter($http_adapter_type);
 }
예제 #2
0
파일: Sag.php 프로젝트: hyla/sag
 /**
  * @param string $host The host's IP or address of the Couch we're connecting
  * to.
  * @param string $port The host's port that Couch is listening on.
  */
 public function __construct($host = "127.0.0.1", $port = "5984")
 {
     SagConfigurationCheck::run();
     $this->host = $host;
     $this->port = $port;
 }