PHP 클래스 DB\SQL

상속: extends db\PDO
파일 보기 프로젝트 열기: bcosca/fatfree-core 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$dbname
$dsn
$engine
$log
$pdo
$rows
$trans
$uuid

공개 메소드들

메소드 설명
__call ( $func, array $args ) : mixed Redirect call to PDO object
__construct ( $dsn, $user = NULL, $pw = NULL, array $options = NULL ) Instantiate class
begin ( ) : boolean Begin SQL transaction
commit ( ) : boolean Commit SQL transaction
count ( ) : integer Return number of rows affected by last query
driver ( ) : string Return database engine
exec ( $cmds, $args = NULL, $ttl, $log = TRUE, $stamp = FALSE ) : array | integer | FALSE Execute SQL statement(s)
log ( $flag = TRUE ) : string Return SQL profiler results (or disable logging)
name ( ) : string Return database name
pdo ( ) : db\PDO Return parent object
quote ( $val, $type = PDO::PARAM_STR ) : string Quote string
quotekey ( $key, boolean $split = TRUE ) : string Return quoted identifier name
rollback ( ) : boolean Rollback SQL transaction
schema ( $table, $fields = NULL, $ttl ) : array | FALSE Retrieve schema of SQL table
trans ( ) : boolean Return transaction flag
type ( $val ) : integer Map data type of argument to a PDO constant
uuid ( ) : string Return UUID
value ( $type, $val ) : scalar Cast value to PHP type
version ( ) : string Return server version

비공개 메소드들

메소드 설명
__clone ( ) ! Prohibit cloning

메소드 상세

__call() 공개 메소드

Redirect call to PDO object
public __call ( $func, array $args ) : mixed
$func string
$args array array
리턴 mixed

__construct() 공개 메소드

Instantiate class
public __construct ( $dsn, $user = NULL, $pw = NULL, array $options = NULL )
$dsn string
$user string
$pw string
$options array array

begin() 공개 메소드

Begin SQL transaction
public begin ( ) : boolean
리턴 boolean

commit() 공개 메소드

Commit SQL transaction
public commit ( ) : boolean
리턴 boolean

count() 공개 메소드

Return number of rows affected by last query
public count ( ) : integer
리턴 integer

driver() 공개 메소드

Return database engine
public driver ( ) : string
리턴 string

exec() 공개 메소드

Execute SQL statement(s)
public exec ( $cmds, $args = NULL, $ttl, $log = TRUE, $stamp = FALSE ) : array | integer | FALSE
$cmds string|array
$args string|array
$ttl int|array
$log bool
$stamp bool
리턴 array | integer | FALSE

log() 공개 메소드

Return SQL profiler results (or disable logging)
public log ( $flag = TRUE ) : string
$flag bool
리턴 string

name() 공개 메소드

Return database name
public name ( ) : string
리턴 string

pdo() 공개 메소드

Return parent object
public pdo ( ) : db\PDO
리턴 db\PDO

quote() 공개 메소드

Quote string
public quote ( $val, $type = PDO::PARAM_STR ) : string
$val mixed
$type int
리턴 string

quotekey() 공개 메소드

Return quoted identifier name
public quotekey ( $key, boolean $split = TRUE ) : string
$key
$split boolean
리턴 string

rollback() 공개 메소드

Rollback SQL transaction
public rollback ( ) : boolean
리턴 boolean

schema() 공개 메소드

Retrieve schema of SQL table
public schema ( $table, $fields = NULL, $ttl ) : array | FALSE
$table string
$fields array|string
$ttl int|array
리턴 array | FALSE

trans() 공개 메소드

Return transaction flag
public trans ( ) : boolean
리턴 boolean

type() 공개 메소드

Map data type of argument to a PDO constant
public type ( $val ) : integer
$val scalar
리턴 integer

uuid() 공개 메소드

Return UUID
public uuid ( ) : string
리턴 string

value() 공개 메소드

Cast value to PHP type
public value ( $type, $val ) : scalar
$type string
$val scalar
리턴 scalar

version() 공개 메소드

Return server version
public version ( ) : string
리턴 string

프로퍼티 상세

$dbname 보호되어 있는 프로퍼티

protected $dbname

$dsn 보호되어 있는 프로퍼티

protected $dsn

$engine 보호되어 있는 프로퍼티

protected $engine

$log 보호되어 있는 프로퍼티

protected $log

$pdo 보호되어 있는 프로퍼티

protected $pdo

$rows 보호되어 있는 프로퍼티

protected $rows

$trans 보호되어 있는 프로퍼티

protected $trans

$uuid 보호되어 있는 프로퍼티

protected $uuid