previousHTML_QuickForm::setConstants() (Previous) (Next) HTML_QuickForm::isSubmitted()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::setDefaults()

HTML_QuickForm::setDefaults() – フォームのデフォルト値を設定する

Synopsis

require_once 'HTML/QuickForm.php';

void HTML_QuickForm::setDefaults ( array $defaultValues = = null , mixed $filter = = null )

Description

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

Parameter

array $defaultValues

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

mixed $filter

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

Throws

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

Note

since 1.0

This function can not be called statically.

previousHTML_QuickForm::setConstants() (Previous) (Next) HTML_QuickForm::isSubmitted()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.