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.
Zend_Translate $_translator = ''
_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.
_hidden(
$name $name, $value $value
=
null, $attribs $attribs
=
null
)
:
string
Creates a hidden element.
We have this as a common method because other elements often need hidden elements for their operation.
getTranslator(
)
:
Zend_Translate
Get translator
setTranslator(
$translator|null $translator
=
null
)
:
Zend_View_Helper_FormElement
Set translator