CouchdbClient::__construct

Creates a new CouchdbClient object

Description

CouchdbClient::__construct ( string $uri = NULL [, bool $use_cookie_auth = FALSE [, string $db_name = NULL ]] )

Warning

This function is currently not documented; only its argument list is available.

Parameters

uri

The CouchDB server uri, can include user_name and password if using authentication.

use_cookie_auth

If provided specifies whether to use cookie based authentication, user_name and password need to be specified in the uri.

db_name

If provided will specify the default database to be used when performing requests.

Return Values

Returns a new CouchdbClient object.

Errors/Exceptions

Throws CouchdbClientException.

Examples

Example #1 CouchdbClient::__construct example

<?php

/* ... */

?>

The above example will output something similar to:

...