Helper to render errors for a form element
category | Zend |
---|---|
package | Zend_View |
subpackage | Helper |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_View_Helper_FormElement |
direct() : void
inherited_from | \Zend_View_Helper_Interface::direct() |
---|
formErrors(string|array $errors, array $options = null
) : string
string
array
Error(s) to render
array
string
getClosingBracket() : string
string
getElementEnd() : string
string
getElementSeparator() : string
string
getElementStart() : string
string
getTranslator() : \Zend_Translate_Adapter | null
\Zend_Translate_Adapter
null
setElementEnd(string $string) : \Zend_View_Helper_FormErrors
string
\Zend_View_Helper_FormErrors
setElementSeparator(string $string) : \Zend_View_Helper_FormErrors
string
\Zend_View_Helper_FormErrors
setElementStart(string $string) : \Zend_View_Helper_FormErrors
string
\Zend_View_Helper_FormErrors
setTranslator(\Zend_Translate|\Zend_Translate_Adapter|null $translator = null
) : \Zend_View_Helper_FormElement
\Zend_Translate
\Zend_Translate_Adapter
null
\Zend_View_Helper_FormElement
setView(\Zend_View_Interface $view) : \Zend_View_Helper_Abstract
inherited_from | \Zend_View_Helper_Interface::setView() |
---|
\Zend_View_Interface
\Zend_View_Helper_Abstract
_getInfo($name, $value= null
, $attribs= null
, $options= null
, $listsep= null
) : 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.
access | protected |
---|
array
An element info array with keys for name, value,
attribs, options, listsep, disable, and escape._hidden(string $name, string $value= null
, array $attribs= null
) : string
We have this as a common method because other elements often need hidden elements for their operation.
access | protected |
---|
string
The element name.
string
The element value.
array
Attributes for the element.
string
A hidden element._htmlAttribs(array $attribs) : string
access | public |
---|
array
From this array, each key-value pair is converted to an attribute name and value.
string
The XHTML for the attributes._isHtml5() : boolean
boolean
_isStrictDoctype() : boolean
boolean
_isXhtml() : boolean
boolean
_normalizeId(string $value) : string
string
string
$view : \Zend_View_Interface
null
$_closingBracket : string
null
$_element : \Zend_Form_Element
$_htmlElementEnd
''
$_htmlElementSeparator
''
$_htmlElementStart
'- '
$_translator : \Zend_Translate_Adapter | null
EOL = "\n"