update export & aggregator & filter to new api + add tests

This commit is contained in:
2017-01-12 15:25:21 +01:00
parent a7dfc5e1bd
commit 2997614a04
10 changed files with 459 additions and 26 deletions

View File

@@ -102,10 +102,13 @@ class CountActivity implements ExportInterface
throw new \LogicException("the key $key is not used by this export");
}
$labels = array_combine($values, $values);
$labels['_header'] = 'Number of activities';
return $labels;
return function($value) {
return $value === '_header' ?
'Number of activities'
:
$value
;
};
}
public function getQueryKeys($data)