Abstract Class Zend_View_Helper_FormElement

Description

Base helper for form elements. Extend this, don't use it on its own.

Located in /View/Helper/FormElement.php (line 32)


	
			
Direct descendents
Class Description
 class Zend_View_Helper_FormButton Helper to generate a "button" element
 class Zend_View_Helper_FormCheckbox Helper to generate a "checkbox" element
 class Zend_View_Helper_FormFile Helper to generate a "file" element
 class Zend_View_Helper_FormHidden Helper to generate a "hidden" element
 class Zend_View_Helper_FormImage Helper to generate an "image" element
 class Zend_View_Helper_FormLabel Form label helper
 class Zend_View_Helper_FormNote Helper to show an HTML note
 class Zend_View_Helper_FormPassword Helper to generate a "password" element
 class Zend_View_Helper_FormRadio Helper to generate a set of radio button elements
 class Zend_View_Helper_FormReset Helper to generate a "reset" button
 class Zend_View_Helper_FormSelect Helper to generate "select" list of options
 class Zend_View_Helper_FormSubmit Helper to generate a "submit" button
 class Zend_View_Helper_FormText Helper to generate a "text" element
 class Zend_View_Helper_FormTextarea Helper to generate a "textarea" element
 class Zend_View_Helper_HtmlList Helper for ordered and unordered lists
Variable Summary
Method Summary
 array _getInfo ( $name, [ $value = null], [ $attribs = null], [ $options = null], [ $listsep = null])
 string _hidden ($name $name, [$value $value = null], [$attribs $attribs = null])
 string _htmlAttribs (array $attribs)
Variables
Zend_View_Interface $view (line 37)
  • access: public
Methods
setView (line 170)

Set the view object

  • access: public
void setView (Zend_View_Interface $view)
_getInfo (line 77)

Converts parameter arguments to an element info array.

E.g, formExample($name, $value, $attribs, $options, $listsep) is the same thing as formExample(array('name' => ...)).

Note that you cannot pass a 'disable' param; you need to pass it as an 'attribs' key.

  • return: An element info array with keys for name, value, attribs, options, listsep, and disable.
  • access: protected
array _getInfo ( $name, [ $value = null], [ $attribs = null], [ $options = null], [ $listsep = null])
  • $name
  • $value
  • $attribs
  • $options
  • $listsep
_hidden (line 156)

Creates a hidden element.

We have this as a common method because other elements often need hidden elements for their operation.

  • return: A hidden element.
  • access: protected
string _hidden ($name $name, [$value $value = null], [$attribs $attribs = null])
  • $name $name: The element name.
  • $value $value: The element value.
  • $attribs $attribs: Attributes for the element.
_htmlAttribs (line 49)

Converts an associative array to a string of tag attributes.

  • return: The XHTML for the attributes.
  • access: protected
string _htmlAttribs (array $attribs)
  • array $attribs: From this array, each key-value pair is converted to an attribute name and value.

Documentation generated on Sun, 27 May 2007 23:24:13 -0700 by phpDocumentor 1.3.2