示例#1
0
 /**
  * Gets the html for an element and adds it to the array by calling
  * parent::renderElement()
  *
  * @param HTML_QuickForm_element    form element being visited
  * @param bool                      Whether an element is required
  * @param string                    An error message associated with an element
  *
  * @access public
  * @return mixed HTML string of element if $immediateRender is set, else we just add the
  *               html to the global _html string 
  */
 function renderElement(&$element, $required, $error)
 {
     $this->_html = '';
     parent::renderElement($element, $required, $error);
     if (!$this->_inGroup) {
         $this->renderedElements[] = array('name' => $element->getName(), 'value' => $element->getValue(), 'html' => $this->_html, 'rendered' => false);
     }
     $this->_html = '';
 }