iPhormLocated in /iPhorm.php (line 3)
string
$_charset
= 'UTF-8' (line 39)
Character encoding to use
array
$_elements
= array() (line 10)
The elements of the form
array
$_successHandlers
= array() (line 25)
Form success handlers
string
$_successMessage
(line 18)
The message to display when the form is successfully submitted
string
$_successRedirect
(line 32)
URL to redirect to on success
static autoload (line 264)
Internal autoloader for spl_autoload_register().
static registerAutoload (line 283)
Configure autoloading of iPhorm classes
addElement (line 66)
Add a single element to the form
addElements (line 77)
Add multiple elements to the form
addSuccessHandler (line 293)
Add a success handler to the form
escape (line 254)
Escapes a value for output to browser. Uses the set character encoding.
getCharset (line 46)
Get the character encoding
getElements (line 156)
Get all of the form elements
getErrors (line 166)
Get the elements and any errors they have
getSuccessHandlers (line 304)
Get all success handlers
getSuccessMessage (line 242)
Get the success message
getSuccessRedirect (line 322)
Get the URL to redirect to on success
getValue (line 213)
Get the values of a single field
getValues (line 196)
Get the values of all fields
isValid (line 131)
Is the form valid?
jsonEncode (line 184)
Encode PHP data in JSON
process (line 91)
Process the form. Checks the validity of the form.
If the form is valid the all success handlers will be run. If the form is not valid, errors are returned to the browser.
setCharset (line 56)
Set the character encoding
setSuccessMessage (line 232)
Set the success message show after the form is successfully submitted
setSuccessRedirect (line 312)
Set the URL to redirect to on success
_dissolveArrayValue (line 352)
Extract the value by walking the array using given array path.
Given an array path such as foo[bar][baz], returns the value of the last element (in this case, 'baz').
_formatMessage (line 384)
Format a message with wrapping HTML <div> with classes. The message should be escaped beforehand for display in the browser, using htmlentities() for example
_prettyName (line 335)
Get the pretty version of the form element name. Translates the machine name to a more human readable format. E.g.
"email_address" becomes "Email address".
Documentation generated on Thu, 24 Feb 2011 22:19:38 +0000 by phpDocumentor 1.4.3