PHP 클래스 ezSQL_pdo

상속: extends ezSQLcore
파일 보기 프로젝트 열기: jv2222/ezsql 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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