Zend Framework  1.12
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Zend_View_Helper_FormElement Class Reference

Public Member Functions

 getTranslator ()
 Get translator.
 
 setTranslator ($translator=null)
 Set translator.
 
- Public Member Functions inherited from Zend_View_Helper_HtmlElement
 getClosingBracket ()
 Get the tag closing bracket.
 
- Public Member Functions inherited from Zend_View_Helper_Abstract
 setView (Zend_View_Interface $view)
 Set the View object.
 
 direct ()
 Strategy pattern: currently unutilized.
 

Protected Member Functions

 _getInfo ($name, $value=null, $attribs=null, $options=null, $listsep=null)
 Converts parameter arguments to an element info array.
 
 _hidden ($name, $value=null, $attribs=null)
 Creates a hidden element.
 
- Protected Member Functions inherited from Zend_View_Helper_HtmlElement
 _isXhtml ()
 Is doctype XHTML?
 
 _isHtml5 ()
 Is doctype HTML5?
 
 _isStrictDoctype ()
 Is doctype strict?
 
 _htmlAttribs ($attribs)
 Converts an associative array to a string of tag attributes.
 
 _normalizeId ($value)
 Normalize an ID.
 

Protected Attributes

 $_translator
 
- Protected Attributes inherited from Zend_View_Helper_HtmlElement
 $_closingBracket = null
 

Additional Inherited Members

- Public Attributes inherited from Zend_View_Helper_HtmlElement
const EOL = "\n"
 EOL character.
 

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.
_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
string$nameThe element name.
string$valueThe element value.
array$attribsAttributes for the element.
Returns
string A hidden element.
getTranslator ( )

Get translator.

Returns
Zend_Translate_Adapter|null
setTranslator (   $translator = null)

Set translator.

Parameters
Zend_Translate | Zend_Translate_Adapter | null$translator
Returns
Zend_View_Helper_FormElement

Member Data Documentation

$_translator
protected