SproutCMS

This is the code documentation for the SproutCMS project

function calculateAggregateColumn()

Calculate the result of an aggregation

Usage

mixed Itemlist::calculateAggregateColumn ( string $operation , array $values );

Arguments

  1. string $operation
    Aggregation operation, 'sum', 'count', 'avg'
  2. array $values
    Raw values, direct from the database

Return value

  • mixed
    Aggregation result; typically an integer or a float