Skip to content

Kirby 4.5.0

$query->aggregate()

Builds an aggregation query.

$query->aggregate(string $method, string $column = '*', int $default = 0)

Parameters

Name Type Default Description
$method * string
$column string '*'
$default int 0 An optional default value, which should be returned if the query fails

Parent class

Kirby\Database\Query