HTML_QuickForm::setConstants()

HTML_QuickForm::setConstants() -- Sets constant form values

Synopsis

require_once 'HTML/QuickForm.php';

void HTML_QuickForm::setConstants ([array $constantValues = NULL [, mixed $filter = NULL]])

Описание

Sets constant form values. These values won't be overridden by either default (set via setDefaults()) or submitted (POST or GET) values.

Параметр

array $constantValues

values used to fill the form, array('element name' => 'element value')

mixed $filter

(optional) filter(s) to apply to all default values

Throws

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

Error codeError messageReasonSolution
QUICKFORM_INVALID_FILTERCallback function does not exist in QuickForm::setConstants()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 йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ