Core/Html/FormDesigner/FormGroup.php
public function &addGroup($unshift = false)
    {
        /* @var $group FormGroup */
        $group = $this->factory->create('FormDesigner\FormGroup');

        $this->elementFactory('group', $group, $unshift);

        $group->injectFormDesigner($this->fd);
        $group->injectParentGroup($this);

        return $group;
    }
public function &addGroup($unshift = false)
    {
        /* @var $group FormGroup */
        $group = $this->factory->create('FormDesigner\FormGroup');

        $this->elementFactory('group', $group, $unshift);

        $group->injectFormDesigner($this->fd);
        $group->injectParentGroup($this);

        return $group;
    }
public function & addGroup ( $ unshift = false ) { /* @var $group FormGroup */ $ group = $ this -> factory -> create ( 'FormDesigner\FormGroup' ) ; $ this -> elementFactory ( 'group' , $ group , $ unshift ) ; $ group -> injectFormDesigner ( $ this -> fd ) ; $ group -> injectParentGroup ( $ this ) ; return $ group ; }
Creates a new FormGroup objects and adds it as new FormElement

@param bool $unshift
Optional flag to add group at beginning of controls array.

@return \Core\Html\FormDesigner\FormGroup
Creates a new FormGroup objects and adds it as new FormElement