GroupAndHavingParamTrait
Table of Contents
Properties
- $groupBy : array<string|int, mixed>
- Field(s) by which to group the results.
- $having : array<string|int, mixed>
- Clause for filtering results after grouping and filters are applied.
Methods
- addGroupBy() : $this
- addHaving() : $this
- getGroupBy() : array<string|int, mixed>
- getHaving() : array<string|int, mixed>
- setGroupBy() : $this
- setHaving() : $this
Properties
$groupBy
Field(s) by which to group the results.
protected
array<string|int, mixed>
$groupBy
= []
$having
Clause for filtering results after grouping and filters are applied.
protected
array<string|int, mixed>
$having
= []
Each expression should correspond to an item from the SELECT array.
Methods
addGroupBy()
public
addGroupBy(string $field) : $this
Parameters
- $field : string
Return values
$thisaddHaving()
public
addHaving(string $expr, string $op[, mixed $value = NULL ][, bool $isExpression = FALSE ]) : $this
Parameters
- $expr : string
- $op : string
- $value : mixed = NULL
- $isExpression : bool = FALSE
Tags
Return values
$thisgetGroupBy()
public
getGroupBy() : array<string|int, mixed>
Return values
array<string|int, mixed>getHaving()
public
getHaving() : array<string|int, mixed>
Return values
array<string|int, mixed>setGroupBy()
public
setGroupBy([array<string|int, mixed> $clauses = ]) : $this
Parameters
- $clauses : array<string|int, mixed> =
Return values
$thissetHaving()
public
setHaving([array<string|int, mixed> $clauses = ]) : $this
Parameters
- $clauses : array<string|int, mixed> =