HTML_QuickForm::setDefaults()

HTML_QuickForm::setDefaults() -- Sets default form values

Referentiesamenvatting

require_once 'HTML/QuickForm.php';

void HTML_QuickForm::setDefaults ([array $defaultValues = NULL [, mixed $filter = NULL]])

Beschrijving

Sets default form values. There are overriden by either constant (set via setConstants()) or submitted (POST or GET) values.

Parameter

array $defaultValues

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

mixed $filter

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

Throws

Tabel 42-1. Mogelijke PEAR_Error waarden

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

Note

since 1.0

Deze functie kan niet statisch worden aangeroepen.