HTML_QuickForm::setConstants()
HTML_QuickForm::setConstants() -- Sets constant form values
概要
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
例外・エラー
表 40-1PEAR_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 |
注意
since 2.0
この関数は、スタティックにコールする
ことはできません。