public function buildFieldset($title, $name = '', $id = '', $class = '', $attributes = [])
    {
        // Create fieldset item
        $id = $id ?: 'flds' . mt_rand();
        $element = $this->buildFormElement($itemName = 'fieldset', $name, $value = '', $id, $class, $itemValue = '', $attributes);

        // Create and append legend
        $legend = $this->buildElement('legend', $title);
        $element->append($legend);

        // Return form element
        return $element;
    }
public function buildFieldset($title, $name = '', $id = '', $class = '', $attributes = [])
    {
        // Create fieldset item
        $id = $id ?: 'flds' . mt_rand();
        $element = $this->buildFormElement($itemName = 'fieldset', $name, $value = '', $id, $class, $itemValue = '', $attributes);

        // Create and append legend
        $legend = $this->buildElement('legend', $title);
        $element->append($legend);

        // Return form element
        return $element;
    }
public function buildFieldset ( $ title , $ name = '' , $ id = '' , $ class = '' , $ attributes = [ ] ) { // Create fieldset item $ id = $ id ? : 'flds' . mt_rand ( ) ; $ element = $ this -> buildFormElement ( $ itemName = 'fieldset' , $ name , $ value = '' , $ id , $ class , $ itemValue = '' , $ attributes ) ; // Create and append legend $ legend = $ this -> buildElement ( 'legend' , $ title ) ; $ element -> append ( $ legend ) ; // Return form element return $ element ; }
Build an html form fieldset element.

@param string $title      The fieldset legend title.
@param string $name       The fieldset name.
@param string $id         The fieldset id.
@param string $class      The fieldset class.
@param array  $attributes A set of extra attributes

@return FormElement
@throws InvalidArgumentException
@throws Exception
Build an html form fieldset element .