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.
Base helper for form elements. Extend this, don't use it on its own.

_getInfo(
$name, $value
=
null, $attribs
=
null, $options
=
null, $listsep
=
null
)
:
array
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.
Name | Type | Description |
---|---|---|
$name | ||
$value | ||
$attribs | ||
$options | ||
$listsep |
Type | Description |
---|---|
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
Creates a hidden element.
We have this as a common method because other elements often need hidden elements for their operation.
Name | Type | Description |
---|---|---|
$name | string | The element name. |
$value | string | The element value. |
$attribs | array | Attributes for the element. |
Type | Description |
---|---|
string | A hidden element. |

setTranslator(
\Zend_Translate $translator
=
null
)
:
\Zend_View_Helper_FormElement
Set translator
Name | Type | Description |
---|---|---|
$translator | \Zend_Translate |
Type | Description |
---|---|
\Zend_View_Helper_FormElement |