previousHTML_QuickForm::getElementError() (Previous) (Next) HTML_QuickForm::registerRule()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::setElementError()

HTML_QuickForm::setElementError() – フォーム要素のエラーメッセージを設定する

Synopsis

require_once 'HTML/QuickForm.php';

void HTML_QuickForm::setElementError ( string $element , string $message )

Description

フォーム要素のエラーメッセージを設定します。フォーム要素のエラーは、通常は validate() メソッドで設定されます。要素のエラーメッセージを明示的に指定したい場合にこれを使用します。

Parameter

string $element

エラーを設定するフォーム要素の名前。

string $message

エラーメッセージ。

Throws

例外はスローされません。

Note

since 1.0

This function can not be called statically.

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