\BEAR_Query_Interface

BEAR_Queryインターフェイス

Summary

Methods
Constants
select()
insert()
update()
delete()
quote()
isError()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

select()

select(string  $query, array  $params = array()) : \BEAR_Ro

セレクト

通常のselect文の他にDB結果の一部だけをSELECTする機能と、HTMLページングの機能が合わさった
メソッドです。getAll()メソッドの引数に加えて一画面に表示するデータ数を
引数に指示するとページング(スライス)されたデータ結果、と
エージェントに合わせたリンクHTML文字列が返ります。

$paramsが空だと通常のSQL、連想配列が入っていると$queryをpreparedステートメート文として期待して実行します。

Parameters

string $query

SQL

array $params

バインドする変数

Returns

\BEAR_Ro

insert()

insert(array  $values, null  $table = null, null  $types = null) : mixed|\mixeds

インサート

Parameters

array $values
null $table
null $types

Returns

mixed|\mixeds

update()

update(array  $values, string  $where, null  $table, null  $types = null) : mixed

アップデート

Parameters

array $values
string $where
null $table
null $types

Returns

mixed

delete()

delete(  $where, null  $table = null) : mixed

デリート

Parameters

$where
null $table

Returns

mixed

quote()

quote(  $value,   $type) : mixed

クオート

Parameters

$value
$type

Returns

mixed

isError()

isError(\MDB2_Result  $result) : mixed

エラー?

Parameters

\MDB2_Result $result

DB結果

Returns

mixed