Class Zend_View_Helper_FormElement

Description

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

  • abstract:
  • license: New BSD License
  • copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

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


	
			
Direct descendents
Class Description
Zend_View_Helper_FormCheckbox Helper to generate a "checkbox" element
Zend_View_Helper_FormSubmit Helper to generate a "submit" button
Zend_View_Helper_FormNote Helper to show an HTML note
Zend_View_Helper_FormFile Helper to generate a "file" element
Zend_View_Helper_FormTextarea Helper to generate a "textarea" element
Zend_View_Helper_FormHidden Helper to generate a "hidden" element
Zend_View_Helper_FormRadio Helper to generate a set of radio button elements
Zend_View_Helper_FormImage Helper to generate an "image" element
Zend_View_Helper_FormReset Helper to generate a "reset" button
Zend_View_Helper_FormButton Helper to generate a "button" element
Zend_View_Helper_FormPassword Helper to generate a "password" element
Zend_View_Helper_FormSelect Helper to generate "select" list of options
Zend_View_Helper_FormText Helper to generate a "text" element
Method Summary
array _getInfo ( $name, [ $value = null], [ $attribs = null], [ $options = null], [ $listsep = null])
string _hidden (mixed $name, [mixed $value = null], [mixed $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 147)

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 (mixed $name, [mixed $value = null], [mixed $attribs = null])
_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 Sun, 29 Oct 2006 21:27:17 -0600 by phpDocumentor 1.3.0RC6