## Zend_View_Helper_FormElement

Description

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

- usedby: Zend_View_Helper_HtmlList
- abstract:
- license: New BSD License
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

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

Direct descendents

Class | Description
--- | ---
Zend_View_Helper_FormButton | Helper to generate a "button" element
Zend_View_Helper_FormCheckbox | Helper to generate a "checkbox" element
Zend_View_Helper_FormFile | Helper to generate a "file" element
Zend_View_Helper_FormHidden | Helper to generate a "hidden" element
Zend_View_Helper_FormImage | Helper to generate an "image" element
Zend_View_Helper_FormNote | Helper to show an HTML note
Zend_View_Helper_FormPassword | Helper to generate a "password" element
Zend_View_Helper_FormRadio | Helper to generate a set of radio button elements
Zend_View_Helper_FormReset | Helper to generate a "reset" button
Zend_View_Helper_FormSelect | Helper to generate "select" list of options
Zend_View_Helper_FormSubmit | Helper to generate a "submit" button
Zend_View_Helper_FormText | Helper to generate a "text" element
Zend_View_Helper_FormTextarea | Helper to generate a "textarea" element
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