Documentation

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

$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

addHaving()

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
throws
CRM_Core_Exception
Return values
$this

setGroupBy()

public setGroupBy([array<string|int, mixed> $clauses = ]) : $this
Parameters
$clauses : array<string|int, mixed> =
Return values
$this

setHaving()

public setHaving([array<string|int, mixed> $clauses = ]) : $this
Parameters
$clauses : array<string|int, mixed> =
Return values
$this

        
On this page

Search results