src/Server/Asyn/Mysql/Miner.php
public function getGroupByString($includeText = true)
    {
        $statement = "";

        foreach ($this->groupBy as $groupBy) {
            $statement .= $groupBy['column'];

            if ($groupBy['order']) {
                $statement .= " " . $groupBy['order'];
            }

            $statement .= ", ";
        }

        $statement = substr($statement, 0, -2);

        if ($includeText && $statement) {
            $statement = "GROUP BY " . $statement;
        }

        return $statement;
    }
public function getGroupByString($includeText = true)
    {
        $statement = "";

        foreach ($this->groupBy as $groupBy) {
            $statement .= $groupBy['column'];

            if ($groupBy['order']) {
                $statement .= " " . $groupBy['order'];
            }

            $statement .= ", ";
        }

        $statement = substr($statement, 0, -2);

        if ($includeText && $statement) {
            $statement = "GROUP BY " . $statement;
        }

        return $statement;
    }
public function getGroupByString ( $ includeText = true ) { $ statement = "" ; foreach ( $ this -> groupBy as $ groupBy ) { $ statement .= $ groupBy [ 'column' ] ; if ( $ groupBy [ 'order' ] ) { $ statement .= " " . $ groupBy [ 'order' ] ; } $ statement .= ", " ; } $ statement = substr ( $ statement , 0 , - 2 ) ; if ( $ includeText && $ statement ) { $ statement = "GROUP BY " . $ statement ; } return $ statement ; }
Get the GROUP BY portion of the statement as a string.

@param  bool $includeText optional include 'GROUP BY' text, default true
@return string GROUP BY portion of the statement
Get the GROUP BY portion of the statement as a string .