ValidForm Builder

Easy and safe XHTML 1.0 strict forms with validation!

Contents

VF_Element→__construct

VF_Element→__construct — This is the basic constructor for every ValidForm element

Description

__construct (string $name, string $label, int $type[, array $validationRules[, array $errorHandlers[, array $meta[, bool $justRender]]]]);

This is the basic constructor for every ValidForm element.

Parameters

  • name
    Name (and ID) of the new field
  • label
    Label of the field. Will be shown in the HTML <label>-tag
  • type
    See Predefined Constants for all possible field types.
  • validationRules
    See: Validation Rules for all possible validation rules.
  • errorHandlers
    See: Error Handlers for all possible error handlers.
  • meta
    See: Meta for all possible meta data.

Return values

No value is returned