[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/wact/src/components/form/ -> WactFormComponent.class.php (summary)

(no description)

File Size: 216 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WactFormComponent:: (17 methods):
  _ensureDataSourceAvailable()
  get()
  set()
  getValue()
  setValue()
  prepare()
  registerDataSource()
  getDataSource()
  findLabel()
  setErrors()
  hasErrors()
  getErrorsDataSet()
  getFieldErrorsDataset()
  _appendErrorsForEachField()
  _appendErrorForField()
  preserveState()
  renderState()


Class: WactFormComponent  - X-Ref

class WactFormComponent.

_ensureDataSourceAvailable()   X-Ref
No description

get($name)   X-Ref
No description

set($name, $value)   X-Ref
No description

getValue($name)   X-Ref
Get the named property from the form DataSource

param: string variable name
return: mixed value or void if not found

setValue($name, $value)   X-Ref
Set a named property in the form DataSource


prepare()   X-Ref
No description

registerDataSource($datasource)   X-Ref
No description

getDataSource()   X-Ref
No description

findLabel($field_id, $component)   X-Ref
Finds the WactLabelComponent associated with a form field, allowing
an error message to be displayed next to the field. Called by this
setErrors.


setErrors($ErrorList)   X-Ref
If errors occur, use this method to identify them to the FormComponent.
(typically this is called for you by controllers)

param: ErrorList

hasErrors()   X-Ref
No description

getErrorsDataSet()   X-Ref
Returns the ErrorList if it exists or an EmptyErrorList if not
(typically this is called for you by controllers)

return: object WactErrorList or EmptyArrayIterator

getFieldErrorsDataset($for = '')   X-Ref
No description

_appendErrorsForEachField(&$result, $error)   X-Ref
No description

_appendErrorForField(&$result, $error, $field)   X-Ref
No description

preserveState($variable)   X-Ref
Identify a property stored in the DataSource of the component, which
should be passed as a hidden input field in the form post. The name
attribute of the hidden input field will be the name of the property.
Use this to have properties persist between form submits


renderState()   X-Ref
Renders the hidden fields for variables which should be preserved.
Called from within a compiled template render function.




Generated: Mon Dec 1 03:56:46 2008 Cross-referenced by PHPXref 0.7