Methods

Add() Add a form element

Add($name) : void

Parameters

$name

CheckFormValues()

CheckFormValues() : void

Define() Define properties of the form or the elements

Define($which, $value) : void

var Which property to define
var Values of the property

Parameters

$which

$value

Constructor Function

Form() 

Form::generate()

Generate(\$template $template) : void

Parameters

$template

\$template

string Path/Filename of the template to use

GetFormValues() Extract the Form Data from the $_POST or $_GET global arrays

GetFormValues() : void

Passed() Checks if the form passed

Passed() : bool

Returns

boolTRUE: Form passed without errors, FALSE: Errors

SetDefault() Add a default value

SetDefault($name, $value) : void

Parameters

$name

$value

 Properties

 

action

$action : string

 

counter

$counter : int

 

debug

$debug : bool

 

defaults

$default : array

 

enctype

$enctype : string

 

fields

$fields : array

 

isSend

$isSend : bool

 

method

$method : string

 

passed

$passed : bool

 

target

$target : string