PHP 클래스 Connection, phppgadmin

저자: : Rahul Lahoria
파일 보기 프로젝트 열기: phppgadmin/phppgadmin 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$conn
$platform The backend platform. Set to UNKNOWN by default.

공개 메소드들

메소드 설명
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

메소드 상세

Connection() 공개 메소드

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() 공개 메소드

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)
리턴 -3 class name of the driver eg. Postgres84

getLastError() 공개 메소드

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

프로퍼티 상세

$conn 공개적으로 프로퍼티

public $conn

$platform 공개적으로 프로퍼티

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