HTML_QuickForm::setConstants()
Описание
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
Таблица 43-1. Возможные значения PEAR_Error
Error code | Error message | Reason | Solution |
---|---|---|---|
QUICKFORM_INVALID_FILTER | Callback function does not exist in QuickForm::setConstants() | Tried to pass a name of a non-existant function as a callback | Check spelling |
Пред. | Начало | След. |
HTML_QuickForm | Уровень выше | HTML_QuickForm::setDefaults() |