lib/components/web/form/Segment.php
public function generate()
    {
        $this->getFields();
        $result = [];
        if (!empty($this->_settings['title'])) {
            $result[] = Html::beginTag('fieldset');
            $result[] = Html::tag('legend', $this->_settings['title']);
        }
        $result[] = $this->grid->generate();
        if (!empty($this->_settings['title'])) {
            $result[] = Html::endTag('fieldset');
        }

        return implode("\n", $result);
    }
public function generate()
    {
        $this->getFields();
        $result = [];
        if (!empty($this->_settings['title'])) {
            $result[] = Html::beginTag('fieldset');
            $result[] = Html::tag('legend', $this->_settings['title']);
        }
        $result[] = $this->grid->generate();
        if (!empty($this->_settings['title'])) {
            $result[] = Html::endTag('fieldset');
        }

        return implode("\n", $result);
    }
public function generate ( ) { $ this -> getFields ( ) ; $ result = [ ] ; if ( ! empty ( $ this -> _settings [ 'title' ] ) ) { $ result [ ] = Html :: beginTag ( 'fieldset' ) ; $ result [ ] = Html :: tag ( 'legend' , $ this -> _settings [ 'title' ] ) ; } $ result [ ] = $ this -> grid -> generate ( ) ; if ( ! empty ( $ this -> _settings [ 'title' ] ) ) { $ result [ ] = Html :: endTag ( 'fieldset' ) ; } return implode ( "\n" , $ result ) ; }
[[@doctodo method_description:generate]].

@return unknown
[[ @doctodo method_description : generate ]] .