Pix_Table_Db_Adapter_SQL

uses \Pix_Table_Db_Adapter
package Table
copyright 2003-2012 PIXNET Digital Media Corporation
license BSD License

 Methods

bulk insert

bulkInsert(\Pix_Table $table, array $keys, array $values_list, array $options) : void

access public

Parameters

$table

\Pix_Table

$keys

array

$values_list

array

$options

array

column_quote 把 $a 字串加上 quote

column_quote(string $a) : string

access public

Parameters

$a

string

Returns

string

deleteOne 從 db 上刪除一個 Row

deleteOne(\Pix_Table_Row $row) : void

access public

Parameters

fetch 從 $table 找出符合 $search 的所有 column

fetch(\Pix_Table $table, \Pix_Table_Search $search, string $select_columns) : array

access public

Parameters

$table

\Pix_Table

$select_columns

string

Returns

array

fetchCount 從 $table 找出符合 $search 條件的數量

fetchCount(\Pix_Table $table, mixed $search) : int

access public

Parameters

$table

\Pix_Table

$search

mixed

Returns

int

fetchOne 從 $table 找出符合 $primary_values 條件的一筆

fetchOne(\Pix_Table $table, array $primary_values, $select_columns) : array

access public

Parameters

$table

\Pix_Table

$primary_values

array

$select_columns

Returns

arrayor null

fetchSum 從 $table 找出符合 $search 數量的 $column 總合

fetchSum(\Pix_Table $table, string $column, \Pix_Table_Search $search) : int

access public

Parameters

$table

\Pix_Table

$column

string

Returns

int

getSQLConditionByTerm()

getSQLConditionByTerm(Pix_Table_Search_Term $term, $table) 

Parameters

$term

$table

getSupportFeatures()

getSupportFeatures() 
Inherited

inherited_from \Pix_Table_Db_Adapter_Abstract::getSupportFeatures()

insertOne 從 db 上增加一筆資料

insertOne(\Pix_Table $table, array | string $keys_values) : void

access public

Parameters

$table

\Pix_Table

$keys_values

arraystring

support()

support($id) 
Inherited

inherited_from \Pix_Table_Db_Adapter_Abstract::support()

Parameters

$id

updateOne 從 db 上更新一個 $row 的 data

updateOne(\Pix_Table_Row $row, array | string $data) : void

access public

Parameters

$data

arraystring