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

Public Member Functions

 formErrors ($errors, array $options=null)
 #@-
 
 setElementEnd ($string)
 Set end string for displaying errors.
 
 getElementEnd ()
 Retrieve end string for displaying errors.
 
 setElementSeparator ($string)
 Set separator string for displaying errors.
 
 getElementSeparator ()
 Retrieve separator string for displaying errors.
 
 setElementStart ($string)
 Set start string for displaying errors.
 
 getElementStart ()
 Retrieve start string for displaying errors.
 
- Public Member Functions inherited from Zend_View_Helper_FormElement
 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 Attributes

 $_element
 
 $_htmlElementEnd = '</li></ul>'
 
 $_htmlElementStart = '<ul%s><li>'
 
 $_htmlElementSeparator = '</li><li>'
 
- Protected Attributes inherited from Zend_View_Helper_FormElement
 $_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.
 
- Protected Member Functions inherited from Zend_View_Helper_FormElement
 _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.
 

Member Function Documentation

formErrors (   $errors,
array  $options = null 
)

#@-

Render form errors

Parameters
string | array$errorsError(s) to render
array$options
Returns
string
getElementEnd ( )

Retrieve end string for displaying errors.

Returns
string
getElementSeparator ( )

Retrieve separator string for displaying errors.

Returns
string
getElementStart ( )

Retrieve start string for displaying errors.

Returns
string
setElementEnd (   $string)

Set end string for displaying errors.

Parameters
string$string
Returns
Zend_View_Helper_FormErrors
setElementSeparator (   $string)

Set separator string for displaying errors.

Parameters
string$string
Returns
Zend_View_Helper_FormErrors
setElementStart (   $string)

Set start string for displaying errors.

Parameters
string$string
Returns
Zend_View_Helper_FormErrors

Member Data Documentation

$_element
protected
$_htmlElementEnd = '</li></ul>'
protected
$_htmlElementSeparator = '</li><li>'
protected
$_htmlElementStart = '<ul%s><li>'
protected