public function toHtml($submitted = false, $blnSimpleLayout = false, $blnLabel = true, $blnDisplayErrors = true)
    {
        // Call this right before __getMetaString();
        $this->setConditionalMeta();

        //*** Set the "id" if not yet set.
        $this->__setMeta("id", $this->getName(), false);

        $strOutput = "<fieldset{$this->__getMetaString()}>\n";
        if (! empty($this->__header)) {
            $strOutput .= "<legend><span>{$this->__header}</span></legend>\n";
        }

        if (is_object($this->__note)) {
            $strOutput .= $this->__note->toHtml();
        }

        foreach ($this->__fields as $field) {
            $strOutput .= $field->toHtml($submitted, $blnSimpleLayout, $blnLabel, $blnDisplayErrors);
        }

        $strOutput .= "</fieldset>\n";

        return $strOutput;
    }
public function toHtml($submitted = false, $blnSimpleLayout = false, $blnLabel = true, $blnDisplayErrors = true)
    {
        // Call this right before __getMetaString();
        $this->setConditionalMeta();

        //*** Set the "id" if not yet set.
        $this->__setMeta("id", $this->getName(), false);

        $strOutput = "<fieldset{$this->__getMetaString()}>\n";
        if (! empty($this->__header)) {
            $strOutput .= "<legend><span>{$this->__header}</span></legend>\n";
        }

        if (is_object($this->__note)) {
            $strOutput .= $this->__note->toHtml();
        }

        foreach ($this->__fields as $field) {
            $strOutput .= $field->toHtml($submitted, $blnSimpleLayout, $blnLabel, $blnDisplayErrors);
        }

        $strOutput .= "</fieldset>\n";

        return $strOutput;
    }
public function toHtml ( $ submitted = false , $ blnSimpleLayout = false , $ blnLabel = true , $ blnDisplayErrors = true ) { // Call this right before __getMetaString(); $ this -> setConditionalMeta ( ) ; //*** Set the "id" if not yet set. $ this -> __setMeta ( "id" , $ this -> getName ( ) , false ) ; $ strOutput = "<fieldset{$this->__getMetaString()}>\n" ; if ( ! empty ( $ this -> __header ) ) { $ strOutput .= "<legend><span>{$this->__header}</span></legend>\n" ; } if ( is_object ( $ this -> __note ) ) { $ strOutput .= $ this -> __note -> toHtml ( ) ; } foreach ( $ this -> __fields as $ field ) { $ strOutput .= $ field -> toHtml ( $ submitted , $ blnSimpleLayout , $ blnLabel , $ blnDisplayErrors ) ; } $ strOutput .= "</fieldset>\n" ; return $ strOutput ; }
Generate HTML output for this fieldset and all it's children

@param boolean $submitted Define if the area has been submitted and propagate that flag to the child fields
@param boolean $blnSimpleLayout Only render in simple layout mode
@param boolean $blnLabel
@param boolean $blnDisplayErrors Display generated errors
@return string Rendered Fiedlset and child elements
Generate HTML output for this fieldset and all it s children