previousGetting, setting and processing element values (Previous) (Next) HTML_QuickForm::setDefaults()next

View this page in Last updated: Tue, 02 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

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 )

Description

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

Parameter

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

Possible PEAR_Error values
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

Note

since 2.0

This function can not be called statically.

previousGetting, setting and processing element values (Previous) (Next) HTML_QuickForm::setDefaults()next

Download Documentation Last updated: Tue, 02 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.