PHP Class Connection, phppgadmin

Author: : Rahul Lahoria
Show file Open project: phppgadmin/phppgadmin Class Usage Examples

Public Properties

Property Type Description
$conn
$platform The backend platform. Set to UNKNOWN by default.

Public Methods

Method Description
Connection ( $host, $port, $sslmode, $user, $password, $database, $fetchMode = ADODB_FETCH_ASSOC ) Creates a new connection. Will actually make a database connection.
getDriver ( (return-by-ref) &$description ) : -3 Gets the name of the correct database driver to use. As a side effect, sets the platform.
getLastError ( ) : Error Get the last error in the connection

Method Details

Connection() public method

Creates a new connection. Will actually make a database connection.
public Connection ( $host, $port, $sslmode, $user, $password, $database, $fetchMode = ADODB_FETCH_ASSOC )
$fetchMode Defaults to associative. Override for different behaviour

getDriver() public method

Gets the name of the correct database driver to use. As a side effect, sets the platform.
public getDriver ( (return-by-ref) &$description ) : -3
$description (return-by-ref)
return -3 class name of the driver eg. Postgres84

getLastError() public method

Get the last error in the connection
public getLastError ( ) : Error
return Error string

Property Details

$conn public property

public $conn

$platform public property

The backend platform. Set to UNKNOWN by default.
public $platform