Public Member Functions | Protected Member Functions | Protected Attributes

Zend_View_Helper_FormElement Class Reference

Inheritance diagram for Zend_View_Helper_FormElement:
Zend_View_Helper_HtmlElement Zend_View_Helper_Abstract Zend_View_Helper_Interface Zend_View_Helper_Fieldset Zend_View_Helper_Form Zend_View_Helper_FormButton Zend_View_Helper_FormCheckbox Zend_View_Helper_FormErrors Zend_View_Helper_FormFile Zend_View_Helper_FormHidden Zend_View_Helper_FormImage Zend_View_Helper_FormLabel Zend_View_Helper_FormNote Zend_View_Helper_FormPassword Zend_View_Helper_FormRadio Zend_View_Helper_FormReset Zend_View_Helper_FormSelect Zend_View_Helper_FormSubmit Zend_View_Helper_FormText Zend_View_Helper_FormTextarea Zend_View_Helper_HtmlList

Public Member Functions

 getTranslator ()
 setTranslator ($translator=null)

Protected Member Functions

 _getInfo ($name, $value=null, $attribs=null, $options=null, $listsep=null)
 _hidden ($name, $value=null, $attribs=null)

Protected Attributes

 $_translator

Detailed Description

Definition at line 37 of file FormElement.php.


Member Function Documentation

_getInfo ( name,
value = null,
attribs = null,
options = null,
listsep = null 
) [protected]

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.

protected

Returns:
array An element info array with keys for name, value, attribs, options, listsep, disable, and escape.

Definition at line 89 of file FormElement.php.

_hidden ( name,
value = null,
attribs = null 
) [protected]

Creates a hidden element.

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

protected

Parameters:
$nameThe element name.
$valueThe element value.
$attribsAttributes for the element.
Returns:
string A hidden element.

Definition at line 195 of file FormElement.php.

getTranslator (  )

Get translator

Returns:
Zend_Translate

Definition at line 49 of file FormElement.php.

setTranslator ( translator = null )

Set translator

Parameters:
$translator|nullZend_Translate
Returns:
Zend_View_Helper_FormElement

Definition at line 60 of file FormElement.php.


The documentation for this class was generated from the following file: