src/Kisma/Core/Utility/ChairLift.php
public static function couchDbClient( $options = array() )
    {
        $_key = Option::get( $options, 'host', 'localhost' ) . ':' . Option::get( $options, 'port', 5984 );

        if ( !isset( self::$_clients[$_key] ) )
        {
            self::$_clients[$_key] = \Doctrine\CouchDB\CouchDBClient::create( $options );
        }

        return self::$_clients[$_key];
    }
public static function couchDbClient( $options = array() )
    {
        $_key = Option::get( $options, 'host', 'localhost' ) . ':' . Option::get( $options, 'port', 5984 );

        if ( !isset( self::$_clients[$_key] ) )
        {
            self::$_clients[$_key] = \Doctrine\CouchDB\CouchDBClient::create( $options );
        }

        return self::$_clients[$_key];
    }
public static function couchDbClient ( $ options = array ( ) ) { $ _key = Option :: get ( $ options , 'host' , 'localhost' ) . ':' . Option :: get ( $ options , 'port' , 5984 ) ; if ( ! isset ( self :: $ _clients [ $ _key ] ) ) { self :: $ _clients [ $ _key ] = \ Doctrine \ CouchDB \ CouchDBClient :: create ( $ options ) ; } return self :: $ _clients [ $ _key ] ; }
Construct and returns a CouchDBClient

@param array $options

Options are:

@option string         $dbname The name of the database
@option string         $type The connection type, "socket" or "stream"
@option string         $host
@option int            $port
@option string         $user
@option string         $password
@option string         $ip
@option bool           $logging

@return \Doctrine\CouchDB\CouchDBClient
Construct and returns a CouchDBClient