HTML_QuickForm::applyFilter()

HTML_QuickForm::applyFilter() -- Applies a filter for the given field(s)

Synopsis

require_once 'HTML/QuickForm.php';

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

Описание

Applies a data filter for the given field(s). Filter is applied recursively.

Параметр

mixed $element

Form element name or array of such names. Special name '__ALL__' means all the form elements.

mixed $filter

Callback, either function name or array(&$object, 'method')

Throws

Таблица 42-1. Возможные значения PEAR_Error

Error codeError messageReasonSolution
QUICKFORM_INVALID_FILTERCallback function does not exist in QuickForm::applyFilter()Tried to pass a name of a non-existant function as a callbackCheck spelling

Заметка

since 2.0

Эта функция не должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ