Commit 67f9cbc8 authored by jaapjansma's avatar jaapjansma
Browse files

updated aggregate handler

parent 58319b44
......@@ -81,6 +81,31 @@ class NumberFieldOutputHandler extends AbstractSimpleFieldOutputHandler implemen
}
}
/**
* Enable aggregation for this field.
*
* @return void
*/
public function enableAggregation() {
$dataFlow = $this->dataSource->ensureField($this->getAggregateFieldSpec());
if ($dataFlow) {
$dataFlow->addAggregateOutputHandler($this);
}
}
/**
* Disable aggregation for this field.
*
* @return void
*/
public function disableAggregation() {
$dataFlow = $this->dataSource->ensureField($this->getAggregateFieldSpec());
if ($dataFlow) {
$dataFlow->removeAggregateOutputHandler($this);
}
}
/**
* When this handler has additional configuration you can add
* the fields on the form with this function.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment