lib/traits/elements.php
public function addParamsGrouping($fields = [])
    {
        if (is_array($fields) && !empty($fields))
        {
            $this->groupingParams = array_merge(is_array($this->groupingParams) ? $this->groupingParams : [], $fields);
        }
    }
public function addParamsGrouping($fields = [])
    {
        if (is_array($fields) && !empty($fields))
        {
            $this->groupingParams = array_merge(is_array($this->groupingParams) ? $this->groupingParams : [], $fields);
        }
    }
public function addParamsGrouping ( $ fields = [ ] ) { if ( is_array ( $ fields ) && ! empty ( $ fields ) ) { $ this -> groupingParams = array_merge ( is_array ( $ this -> groupingParams ) ? $ this -> groupingParams : [ ] , $ fields ) ; } }
Add parameters to grouping

@param array $fields
@uses groupingParams
Add parameters to grouping