File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -449,6 +449,10 @@ public function getGroupByFields() {
449449 public function setGroupByFields ($ groupByFields ) {
450450 $ this ->groupByFields = $ groupByFields ;
451451 }
452+
453+ public function addGroupBy ($ groupByField ){
454+ $ this ->groupByFields []=$ groupByField ;
455+ }
452456
453457 public function getGroupByFieldsCount () {
454458 if (is_array ($ this ->groupByFields )) {
Original file line number Diff line number Diff line change @@ -711,6 +711,13 @@ public function getGroupByFields() {
711711 public function setGroupByFields ($ _groupByFields ) {
712712 $ this ->_instanceViewer ->setGroupByFields ($ _groupByFields );
713713 }
714+
715+ public function addGroupBy ($ index ){
716+ $ index = $ this ->_getIndex ($ index );
717+ if ($ index !== false ) {
718+ $ this ->_instanceViewer ->addGroupBy ($ index );
719+ }
720+ }
714721
715722 /**
716723 *
You can’t perform that action at this time.
0 commit comments