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

        if ( !isset( self::$_dms[$_key] ) )
        {
            self::$_dms[$_key] = \Doctrine\ODM\CouchDB\DocumentManager::create(
                Option::get( $options, 'client', static::couchDbClient( $options ) ),
                Option::get( $options, 'config' ),
                Option::get( $options, 'manager' )
            );
        }

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

        if ( !isset( self::$_dms[$_key] ) )
        {
            self::$_dms[$_key] = \Doctrine\ODM\CouchDB\DocumentManager::create(
                Option::get( $options, 'client', static::couchDbClient( $options ) ),
                Option::get( $options, 'config' ),
                Option::get( $options, 'manager' )
            );
        }

        return self::$_dms[$_key];
    }
public static function documentManager ( $ options = array ( ) ) { $ _key = Option :: get ( $ options , 'host' , 'localhost' ) . ':' . Option :: get ( $ options , 'port' , 5984 ) ; if ( ! isset ( self :: $ _dms [ $ _key ] ) ) { self :: $ _dms [ $ _key ] = \ Doctrine \ ODM \ CouchDB \ DocumentManager :: create ( Option :: get ( $ options , 'client' , static :: couchDbClient ( $ options ) ) , Option :: get ( $ options , 'config' ) , Option :: get ( $ options , 'manager' ) ) ; } return self :: $ _dms [ $ _key ] ; }
Constructs and sets all options at once.

@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
@option Configuration      $config
@option EventManager       $manager
@option array               $namespaces Array of additional document namespaces

@return \Doctrine\ODM\CouchDB\DocumentManager
Constructs and sets all options at once .