PHP Класс Connection, phppgadmin

Автор: : Rahul Lahoria
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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