previousHTML_QuickForm::isRuleRegistered() (Previous) (Next) フォームの出力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::applyFilter()

HTML_QuickForm::applyFilter() – 指定したフィールドにフィルタを適用する

Synopsis

require_once 'HTML/QuickForm.php';

void HTML_QuickForm::applyFilter ( mixed $element , mixed $filter )

Description

指定したフィールドにフィルタを適用します。フィルタは、再帰的に適用されます。

Parameter

mixed $element

フォームの要素名、あるいは要素名の配列。 '__ALL__' を指定すると、 フォーム上のすべての要素が対象になります。

mixed $filter

コールバック。関数名あるいは array(&$object, 'メソッド名') で指定します。

Throws

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

Note

since 2.0

This function can not be called statically.

previousHTML_QuickForm::isRuleRegistered() (Previous) (Next) フォームの出力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:
Note by: cweiske
Trim all whitespace from all elements:
<?php
$form
->applyFilter('__ALL__''trim');
?>