Abstract Class Zend_View_Helper_FormElement

Description

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

Located in /Zend/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_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
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)
Methods
_getInfo (line 73)

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. A "'readonly' => 'readonly'" attribs key-value pair has the same effect as "'disable' => true".

  • 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 155)

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 44)

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 Wed, 21 Feb 2007 11:49:06 -0800 by phpDocumentor 1.3.1