PHP Class Baum\Extensions\Query\Builder

Inheritance: extends Illuminate\Database\Query\Builder
Datei anzeigen Open project: gazsp/baum

Public Methods

Method Description
aggregate ( string $function, array $columns = ['*'] ) : mixed Execute an aggregate function on the database.
reOrderBy ( string $column, string $direction = 'asc' ) : Builder | static Replace the "order by" clause of the current query.

Method Details

aggregate() public method

Execute an aggregate function on the database.
public aggregate ( string $function, array $columns = ['*'] ) : mixed
$function string
$columns array
return mixed

reOrderBy() public method

Replace the "order by" clause of the current query.
public reOrderBy ( string $column, string $direction = 'asc' ) : Builder | static
$column string
$direction string
return Illuminate\Database\Query\Builder | static