_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; } }