updateAttributes( array( 'label' => $label, 'name' => $name ) ); $this->_type = 'html'; } /** * Accepts a renderer * * @param HTML_QuickForm_Renderer renderer object (only works with Default renderer!) * @access public * @return void */ function accept(&$renderer, $required = false, $error = null) { $renderer->renderHtml($this); } /** * @return string */ public function toHtml() { $name = $this->getAttribute('name'); $text = $this->getAttribute('label'); $label = is_array($text) ? $text[0] : $text; $html = '
'; if (is_array($text) && isset($text[1])) { $html .= ''.$text[1].''; } $html .= '
'; if (is_array($text) && isset($text[2])) { $html .= '
'.$text[2].'
'; } $html .= '
'; return $html; } }