protected function generateGroups($meta)
    {
        if ($this->group) {
            $result = array();
            $sorts = array();
            foreach ($this->group as $by => $settings) {
                $sorts[$by] = Utility::get($settings, "sort", "asc");
            }
            $sorts = array_merge($sorts, $this->sorting);
            $this->dataStore->sort($sorts);
            Table::groupLevel($meta, $this->group, $this->dataStore, $result);
            return $result;
        }
        return false;
    }
protected function generateGroups($meta)
    {
        if ($this->group) {
            $result = array();
            $sorts = array();
            foreach ($this->group as $by => $settings) {
                $sorts[$by] = Utility::get($settings, "sort", "asc");
            }
            $sorts = array_merge($sorts, $this->sorting);
            $this->dataStore->sort($sorts);
            Table::groupLevel($meta, $this->group, $this->dataStore, $result);
            return $result;
        }
        return false;
    }
protected function generateGroups ( $ meta ) { if ( $ this -> group ) { $ result = array ( ) ; $ sorts = array ( ) ; foreach ( $ this -> group as $ by => $ settings ) { $ sorts [ $ by ] = Utility :: get ( $ settings , "sort" , "asc" ) ; } $ sorts = array_merge ( $ sorts , $ this -> sorting ) ; $ this -> dataStore -> sort ( $ sorts ) ; Table :: groupLevel ( $ meta , $ this -> group , $ this -> dataStore , $ result ) ; return $ result ; } return false ; }
Generate groups for table grouping

@param array $meta The meta data of table

@return array List of results
Generate groups for table grouping