Swat/SwatTableView.php
public function appendGroup(SwatTableViewGroup $group)
    {
        $this->validateGroup($group);

        $this->groups[] = $group;

        if ($group->id !== null) {
            $this->groups_by_id[$group->id] = $group;
        }

        $group->view = $this;
        $group->parent = $this;
    }
public function appendGroup(SwatTableViewGroup $group)
    {
        $this->validateGroup($group);

        $this->groups[] = $group;

        if ($group->id !== null) {
            $this->groups_by_id[$group->id] = $group;
        }

        $group->view = $this;
        $group->parent = $this;
    }
public function appendGroup ( SwatTableViewGroup $ group ) { $ this -> validateGroup ( $ group ) ; $ this -> groups [ ] = $ group ; if ( $ group -> id !== null ) { $ this -> groups_by_id [ $ group -> id ] = $ group ; } $ group -> view = $ this ; $ group -> parent = $ this ; }
Appends a grouping object to this table-view

A grouping object affects how the data in the table model is displayed
in this table-view. With a grouping, rows are split into groups with
special group headers above each group.

Multiple groupings may be added to table-views.

@param SwatTableViewGroup $group the table-view grouping to append to
this table-view.

@see SwatTableViewGroup

@throws SwatDuplicateIdException if the group has the same id as a
group already in this table-view.
Appends a grouping object to this table - view