PHP Class Pheasant\Database\ConnectionManager

Afficher le fichier Open project: lox/pheasant

Méthodes publiques

Méthode Description
addConnection ( $name, $dsn ) Adds a named connection, with a string dsn
addDriver ( $scheme, $class ) Adds a connection class to use for a specific scheme
changeDefault ( $default ) Sets what connection name is used when 'default' is looked up
clear ( ) Clears connections
connection ( $name ) Returns a connection

Private Methods

Méthode Description
_buildConnection ( Dsn $dsn ) : Connection Builds a connection object for a given Dsn

Method Details

addConnection() public méthode

Adds a named connection, with a string dsn
public addConnection ( $name, $dsn )

addDriver() public méthode

Adds a connection class to use for a specific scheme
public addDriver ( $scheme, $class )

changeDefault() public méthode

Sets what connection name is used when 'default' is looked up
public changeDefault ( $default )

clear() public méthode

Clears connections
public clear ( )

connection() public méthode

Returns a connection
public connection ( $name )