function toHtml()
    {
        $this->_generateId(); // Seems to be necessary when this is used in a group.
        if (0 == strlen($this->_text)) {
            $label = '';
        } elseif ($this->_flagFrozen) {
            $label = $this->_text;
        } else {
            $label = '<label for="' . $this->getAttribute('id') . '">' . $this->_text . '</label>';
        }
        return HTML_QuickForm_input::toHtml() . $label;
    }
function toHtml()
    {
        $this->_generateId(); // Seems to be necessary when this is used in a group.
        if (0 == strlen($this->_text)) {
            $label = '';
        } elseif ($this->_flagFrozen) {
            $label = $this->_text;
        } else {
            $label = '<label for="' . $this->getAttribute('id') . '">' . $this->_text . '</label>';
        }
        return HTML_QuickForm_input::toHtml() . $label;
    }
function toHtml ( ) { $ this -> _generateId ( ) ; // Seems to be necessary when this is used in a group. if ( 0 == strlen ( $ this -> _text ) ) { $ label = '' ; } elseif ( $ this -> _flagFrozen ) { $ label = $ this -> _text ; } else { $ label = '<label for="' . $ this -> getAttribute ( 'id' ) . '">' . $ this -> _text . '</label>' ; } return HTML_QuickForm_input :: toHtml ( ) . $ label ; }
Returns the checkbox element in HTML

@since     1.0
@access    public
@return    string
Returns the checkbox element in HTML