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'); return '
'.$text.'
'; } }