PHP Class Horde_Core_Factory_Db, horde

Copyright 2010-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Inheritance: extends Horde_Core_Factory_Base
显示文件 Open project: horde/horde

Public Methods

Method Description
create ( string $app = 'horde', string | array $backend = null ) : Horde_Db_Adapter Returns the DB instance.
createDb ( $config )
getConfig ( $backend )

Protected Methods

Method Description
_createDb ( $config, string $sig = null, boolean $cache = true )

Method Details

_createDb() protected method

protected _createDb ( $config, string $sig = null, boolean $cache = true )
$sig string Save instance under this signature key.
$cache boolean Add default cache to driver?

create() public method

Returns the DB instance.
public create ( string $app = 'horde', string | array $backend = null ) : Horde_Db_Adapter
$app string The application.
$backend string | array The backend, see Horde::getDriverConfig(). If this is an array, this is used as the configuration array.
return Horde_Db_Adapter The singleton instance.

createDb() public method

public createDb ( $config )

getConfig() public method

public getConfig ( $backend )