HTML_QuickForm_select::loadArray() (Previous) (Next) HTML_QuickForm_select::loadQuery()

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

HTML_QuickForm_select::loadDbResult()

HTML_QuickForm_select::loadDbResult() -- DB_result オブジェクトから選択肢を読み込む

説明

カラム名が指定されていない場合、結果の最初の 2 つのカラムが それぞれ表示テキストおよび値として使用されます。

パラメータ

object &$result

DB_result オブジェクト。

string $textCol

(オプション) OPTION のテキストとして表示するカラムの名前。

string $valueCol

(オプション) OPTION の値として使用するカラムの名前。

mixed $values

(オプション) 選択された値を表す、配列あるいはカンマ区切り文字列。

返り値

成功した場合に TRUE、それ以外の場合に PEAR_Error を返します。

例外・エラー

PEAR_Error をスローします。

参照

load()addOption() も参照ください。

注意

since 1.0

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

HTML_QuickForm_select::loadArray() (Previous) (Next) HTML_QuickForm_select::loadQuery()

Download Documentation Last updated: Sun, 07 Sep 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.