SproutCMS

This is the code documentation for the SproutCMS project

function addAggregateColumn()

Add an aggregate which operates on the values of a column

Usage

void $Itemlist->addAggregateColumn ( string $title , string $operation [, ColModifier $modifier ] );

Arguments

  1. string $title
    Column to aggregate values of
  2. string $operation
    Aggregation operation, 'sum', 'count', 'avg'
  3. ColModifier $modifier = NULL
    Column modifier applied after aggregation to format the result

Exceptions thrown

  • InvalidArgumentException
    Unknown operation

Return value

  • void