libAllure
 
Loading...
Searching...
No Matches
libAllure\Form Class Reference
+ Inheritance diagram for libAllure\Form:

Public Member Functions

 __construct ($name=null, $title=null, $action=null)
 
 addButtons ($buttonMask)
 
 addDefaultButtons ($title=null)
 
 addElement (Element $el)
 
 addElementDetached (Element $el)
 
 addElementGroup (array $elementList)
 
 addElementHidden ($name, $value)
 
 addElementReadOnly ($title, $value, $roElementName=null)
 
 addScript ($s)
 
 addSection ($sectionTitle)
 
 bindElementToStatement (&$stmt, $elementName, $parameterName=null)
 
 bindStatementValues (&$stmt, $names)
 
 getAction ()
 
 getAllElementValues ()
 
 getElement ($name)
 
 getElements ()
 
 getElementValue ($elementName)
 
 getEnctype ()
 
 getName ()
 
 getScripts ()
 
 getTitle ()
 
 isSubmitted ()
 
 orderElements ()
 
 process ()
 
 requireFields ()
 
 reset ()
 
 setAllElementValues ($values)
 
 setElementError ($el, $err)
 
 setFullyQualifiedElementNames ($newVal)
 
 setTitle ($title)
 
 validate ()
 

Static Public Member Functions

static strToForm ($s)
 

Public Attributes

 $scripts = array()
 
const BTN_LOGIN = 1
 
const BTN_RESET = 2
 
const BTN_SUBMIT = 4
 

Static Public Attributes

static $fullyQualifiedElementNames = true
 
static $registeredForms = array()
 

Protected Member Functions

 validateExtended ()
 

Protected Attributes

 $elements = array()
 
 $enctype = 'multipart/form-data'
 

Member Function Documentation

◆ addButtons()

libAllure\Form::addButtons (   $buttonMask)

A simple function to add buttons to a form. Buttons are specified as a bitmask, the values for which should be defined at the top of this file.

◆ addScript()

libAllure\Form::addScript (   $s)

Encapsulate a string within <script> tags and dump it at the bottom of the form.

◆ reset()

libAllure\Form::reset ( )
final

This will not reset element groups or hidden elements.