View/Helper/FormErrors.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_View
- Subpackage
- Helper
- Version
- $Id: FormErrors.php 25207 2013-01-10 11:36:54Z frosch $
\Zend_View_Helper_FormErrors
Package: Zend\View\HelperHelper to render errors for a form element
Extend this, don't use it on its own.
- Parent(s)
- \Zend_View_Helper_FormElement
<
\Zend_View_Helper_HtmlElement
<
\Zend_View_Helper_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties
Methods



_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.
ParametersName | Type | Description |
---|
$name | | |
---|
$value | | |
---|
$attribs | | |
---|
$options | | |
---|
$listsep | | |
---|
ReturnsType | Description |
---|
array | An element info array with keys for name, value,
attribs, options, listsep, disable, and escape. |
Details- Access
- protected



_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.
ParametersName | Type | Description |
---|
$name | string | The element name. |
---|
$value | string | The element value. |
---|
$attribs | array | Attributes for the element. |
---|
ReturnsType | Description |
---|
string | A hidden element. |
Details- Access
- protected



_htmlAttribs(array $attribs) : string
ParametersName | Type | Description |
---|
$attribs | array | From this array, each key-value pair is
converted to an attribute name and value.
|
---|
ReturnsType | Description |
---|
string | The XHTML for the attributes. |
Details- Access
- public



formErrors(string | array $errors, array $options = null) : string
ParametersName | Type | Description |
---|
$errors | string | array | Error(s) to render
|
---|
$options | array | |
---|
Returns 


setElementEnd(string $string) : \Zend_View_Helper_FormErrors
Set end string for displaying errors
ParametersName | Type | Description |
---|
$string | string | |
---|
Returns 


setElementSeparator(string $string) : \Zend_View_Helper_FormErrors
Set separator string for displaying errors
ParametersName | Type | Description |
---|
$string | string | |
---|
Returns 


setElementStart(string $string) : \Zend_View_Helper_FormErrors
Set start string for displaying errors
ParametersName | Type | Description |
---|
$string | string | |
---|
Returns