PHP Класс ezSQL_pdo

Наследование: extends ezSQLcore
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$dsn
$password
$rows_affected
$user

Открытые методы

Метод Описание
__construct ( $dsn = '', $user = '', $password = '', $ssl = [] ) ******************************************************************** Constructor - allow the user to perform a quick connect at the same time as initialising the ezSQL_pdo class
catch_error ( ) ******************************************************************** Hooks into PDO error system and reports it to user
connect ( $dsn = '', $user = '', $password = '', $ssl = [] ) ******************************************************************** Try to connect to database server
escape ( $str ) ******************************************************************** Format a string correctly for safe PDO insert (no mater if magic quotes are on or not)
query ( $query ) Basic Query - see docs for more detail
quick_connect ( $dsn = '', $user = '', $password = '', $ssl = [] ) ******************************************************************** In the case of PDO quick_connect is not really needed because std. connect already does what quick connect does - but for the sake of consistency it has been included
select ( $dsn = '', $user = '', $password = '', $ssl = [] ) ******************************************************************** No real equivalent of mySQL select in PDO once again, function included for the sake of consistency
sysdate ( ) ******************************************************************** Return specific system date syntax i.e. Oracle: SYSDATE Mysql: NOW()

Описание методов

__construct() публичный Метод

******************************************************************** Constructor - allow the user to perform a quick connect at the same time as initialising the ezSQL_pdo class
public __construct ( $dsn = '', $user = '', $password = '', $ssl = [] )

catch_error() публичный Метод

******************************************************************** Hooks into PDO error system and reports it to user
public catch_error ( )

connect() публичный Метод

******************************************************************** Try to connect to database server
public connect ( $dsn = '', $user = '', $password = '', $ssl = [] )

escape() публичный Метод

******************************************************************** Format a string correctly for safe PDO insert (no mater if magic quotes are on or not)
public escape ( $str )

query() публичный Метод

Basic Query - see docs for more detail
public query ( $query )

quick_connect() публичный Метод

******************************************************************** In the case of PDO quick_connect is not really needed because std. connect already does what quick connect does - but for the sake of consistency it has been included
public quick_connect ( $dsn = '', $user = '', $password = '', $ssl = [] )

select() публичный Метод

******************************************************************** No real equivalent of mySQL select in PDO once again, function included for the sake of consistency
public select ( $dsn = '', $user = '', $password = '', $ssl = [] )

sysdate() публичный Метод

******************************************************************** Return specific system date syntax i.e. Oracle: SYSDATE Mysql: NOW()
public sysdate ( )

Описание свойств

$dsn публичное свойство

public $dsn

$password публичное свойство

public $password

$rows_affected публичное свойство

public $rows_affected

$user публичное свойство

public $user