/** * @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); }
/** * @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; }