PHP Class Horde_Core_Factory_DbPear, 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
Exibir arquivo Open project: horde/horde

Public Methods

Method Description
create ( string $type = 'rw', string $app = 'horde', mixed $dtype = null ) : DB Return the DB instance.
getConfig ( $type )

Method Details

create() public method

Return the DB instance.
public create ( string $type = 'rw', string $app = 'horde', mixed $dtype = null ) : DB
$type string Either 'read' or 'rw'.
$app string The application.
$dtype mixed The type. If this is an array, this is used as the configuration array.
return DB The singleton DB instance.

getConfig() public method

public getConfig ( $type )