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.
Helper to generate a set of radio button elements

_getInfo(
$name, $value
=
null, $attribs
=
null, $options
=
null, $listsep
=
null
)
:
array
Converts parameter arguments to an element info array.
Inherited from: \Zend_View_Helper_FormElement::_getInfo()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.
Inherited from: \Zend_View_Helper_FormElement::_hidden()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. |

_htmlAttribs(
array $attribs
)
:
string
Converts an associative array to a string of tag attributes.
Inherited from: \Zend_View_Helper_HtmlElement::_htmlAttribs()Name | Type | Description |
---|---|---|
$attribs | array | From this array, each key-value pair is converted to an attribute name and value. |
Type | Description |
---|---|
string | The XHTML for the attributes. |

_isStrictDoctype(
)
:
boolean
Is doctype strict?
Inherited from: \Zend_View_Helper_HtmlElement::_isStrictDoctype()Type | Description |
---|---|
boolean |

_isXhtml(
)
:
boolean
Is doctype XHTML?
Inherited from: \Zend_View_Helper_HtmlElement::_isXhtml()Type | Description |
---|---|
boolean |

_normalizeId(
string $value
)
:
string
Normalize an ID
Inherited from: \Zend_View_Helper_HtmlElement::_normalizeId()Name | Type | Description |
---|---|---|
$value | string |
Type | Description |
---|---|
string |

direct(
)
:
void
Strategy pattern: currently unutilized
Inherited from: \Zend_View_Helper_Abstract::direct()
formRadio(
string|array $name, mixed $value
=
null, array|string $attribs
=
null, array $options
=
null, $listsep
=
\n
)
:
string
Generates a set of radio button elements.
Name | Type | Description |
---|---|---|
$name | string|array | If a string, the element name. If an array, all other parameters are ignored, and the array elements are extracted in place of added parameters. |
$value | mixed | The radio value to mark as 'checked'. |
$attribs | array|string | Attributes added to each radio. |
$options | array | An array of key-value pairs where the array key is the radio value, and the array value is the radio text. |
$listsep |
Type | Description |
---|---|
string | The radio buttons XHTML. |

getClosingBracket(
)
:
string
Get the tag closing bracket
Inherited from: \Zend_View_Helper_HtmlElement::getClosingBracket()Type | Description |
---|---|
string |

getTranslator(
)
:
\Zend_Translate
Get translator
Inherited from: \Zend_View_Helper_FormElement::getTranslator()Type | Description |
---|---|
\Zend_Translate |

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

setView(
\Zend_View_Interface $view
)
:
\Zend_View_Helper_Abstract
Set the View object
Inherited from: \Zend_View_Helper_Abstract::setView()Name | Type | Description |
---|---|---|
$view | \Zend_View_Interface |
Type | Description |
---|---|
\Zend_View_Helper_Abstract |