The GROUP BY clause builder.

package Peyote
author Dave Widmer

 Methods

Compiles the query into raw SQL

compile() : string
Inherited

inherited_from \Peyote\Sort::compile()

Returns

string

Gets all of the methods that should be passed as "mixin" methods.

getMethods() : array

Returns

array

Gets the type of sorting query we are running.

getType() : string

Returns

string

Groups a result with an optional direction.

groupBy(string $column, string $direction) : \Peyote\Group

Parameters

$column

string

The column name

$direction

string

The direction to sort on

Returns

 Properties

 

The order clauses.

$clauses : array
Inherited

inherited_from \Peyote\Sort::$$clauses