HTML_QuickForm::isRuleRegistered() (Previous) (Next) HTML_QuickForm_Controller

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

HTML_QuickForm::applyFilter()

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

説明

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

パラメータ

mixed $element

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

mixed $filter

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

注意

since 2.0

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

HTML_QuickForm::isRuleRegistered() (Previous) (Next) HTML_QuickForm_Controller

Download Documentation Last updated: Sun, 05 Oct 2008
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');
?>