DB_DataObject::factory() (Previous) (Next) DB_DataObject::staticGet()

View this page in Last updated: Sun, 05 Oct 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

->get()

->get() --  単純な取得 (Select) リクエスト

説明

キーや値を使用して結果を取得します。 成功した場合、行数を返し (通常は1) 、 このクラス変数に全ての表カラムをセットします。 もし、1つのパラメータのみが使用された場合、第1引数は値と見なされ、 get() は主キーを使用します。

パラメータ

  • mixed $key あるいは $value - カラム (あるいは、 1つだけのパラメータの場合は値) を指定します。

  • mixed $value - 値を指定します。

返り値

int - 行数

注意

この関数は、スタティックにコールする ことはできません。

同じオブジェクトインスタンスで2回 get をコールすることを回避すべきです。 その場合、予期しない結果となります。

DB_DataObject::factory() (Previous) (Next) DB_DataObject::staticGet()

Download Documentation Last updated: Sun, 05 Oct 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.