previous要素値の取得、設定および処理 (Previous) (Next) HTML_QuickForm::setDefaults()next

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

HTML_QuickForm::setConstants()

HTML_QuickForm::setConstants() – フォームの定数値を設定する

Synopsis

require_once 'HTML/QuickForm.php';

void HTML_QuickForm::setConstants ( array $constantValues = = null , mixed $filter = = null )

Description

フォームの定数値を設定します。これらの値は、デフォルト値 ( setDefaults() で設定したもの) や (POST や GET で) 送信された値などで上書きされることはありません。

Parameter

array $constantValues

フォームに設定する値。array('要素名' => '要素の値')

mixed $filter

(オプション) すべてのデフォルト値に適用するフィルタ。

Throws

Possible PEAR_Error values
エラーコード エラーメッセージ 原因 対応
QUICKFORM_INVALID_FILTER Callback function does not exist in QuickForm::setConstants() 存在しない関数をコールバックとして渡そうとしました。 綴りを調べます。

Note

since 2.0

This function can not be called statically.

previous要素値の取得、設定および処理 (Previous) (Next) HTML_QuickForm::setDefaults()next

Download Documentation Last updated: Sun, 21 Jun 2009
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.