diff -r 000000000000 -r 4eba9c11703f web/Zend/View/Helper/Fieldset.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/View/Helper/Fieldset.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,79 @@ +_getInfo($name, $content, $attribs); + extract($info); + + // get legend + $legend = ''; + if (isset($attribs['legend'])) { + $legendString = trim($attribs['legend']); + if (!empty($legendString)) { + $legend = '' + . (($escape) ? $this->view->escape($legendString) : $legendString) + . '' . PHP_EOL; + } + unset($attribs['legend']); + } + + // get id + if (!empty($id)) { + $id = ' id="' . $this->view->escape($id) . '"'; + } else { + $id = ''; + } + + // render fieldset + $xhtml = '_htmlAttribs($attribs) + . '>' + . $legend + . $content + . ''; + + return $xhtml; + } +}