PHP Class Pix_Table_Db_Adapter_MysqlCommon, pixframework

Inheritance: extends Pix_Table_Db_Adapter_SQL
Show file Open project: pixnet/pixframework

Public Methods

Method Description
checkTable ( $table )
column_quote ( string $name ) : string column_quote 把 $name 字串加上 quote
createTable ( Pix_Table $table ) : void createTable 將 $table 建立進資料庫內
dropTable ( Pix_Table $table ) : void dropTable 從資料庫內移除 $table 這個 Table
getTableFromDb ( $db_table_name, string $pix_table_name = null ) : Pix_Table get Pix_Table object from db schema
getTables ( ) : array get table list on db
query ( $sql )
quoteWithColumn ( $table, $value, $column_name ) : string quote 將 $str 字串內容 quote 起來。

Method Details

checkTable() public method

public checkTable ( $table )

column_quote() public method

column_quote 把 $name 字串加上 quote
public column_quote ( string $name ) : string
$name string
return string

createTable() public method

createTable 將 $table 建立進資料庫內
public createTable ( Pix_Table $table ) : void
$table Pix_Table
return void

dropTable() public method

dropTable 從資料庫內移除 $table 這個 Table
public dropTable ( Pix_Table $table ) : void
$table Pix_Table
return void

getTableFromDb() public method

get Pix_Table object from db schema
public getTableFromDb ( $db_table_name, string $pix_table_name = null ) : Pix_Table
$pix_table_name string
return Pix_Table

getTables() public method

get table list on db
public getTables ( ) : array
return array

query() abstract public method

abstract public query ( $sql )

quoteWithColumn() public method

quote 將 $str 字串內容 quote 起來。
public quoteWithColumn ( $table, $value, $column_name ) : string
return string