add an interface for export which are lists

Lists does not supports aggregators.

The export manager will filter the aggregators applying on the export
depending on the interface implemented by the export: if the export implements
`Export\ListInterface`, no aggregators will be returned for this export.
This commit is contained in:
2016-12-09 19:52:54 +01:00
parent dc59c99f70
commit 9d18581db1
6 changed files with 44 additions and 3 deletions

View File

@@ -25,6 +25,10 @@ use Doctrine\ORM\QueryBuilder;
* Interface for Export.
*
* An export is a class which will initiate a query for an export.
*
* **Note** : the report implementing this class will be modified by
* both filters **and** aggregators. If the report does not support
* aggregation, use `ListInterface`.
*
* @example Chill\PersonBundle\Export\CountPerson an example of implementation
* @author Julien Fastré <julien.fastre@champs-libres.coop>