Class Details

Singleton to manage any and all database connections.

Class Methods

public static void drop_connection ( [ string $name = null] )

Drops the connection from the connection manager. Does not actually close it since there is no close method in PDO.

  • string $name - Name of the connection to forget about
public static Connection get_connection ( [ string $name = null] )

If $name is null then the default connection will be returned.

  • string $name - Optional name of a connection