improve test, modify exportInterface, use constants for ExportType keys

- add a test for 'generate' ;
- the ExportType declare keys, and those keys are used in ExportManager;
- the export interface does not require the "has form" function, and
  export form is taken into account
This commit is contained in:
2016-02-05 12:51:26 +01:00
parent fed93f47a1
commit f888b39cdb
5 changed files with 150 additions and 38 deletions

View File

@@ -60,17 +60,9 @@ interface ExportInterface extends ExportElementInterface
* @param QueryBuilder $qb
* @param array $requiredModifiers
* @param array $acl an array where each row as a `center` key containing the Chill\MainBundle\Entity\Center, and `circles` containing the reachable circles
* TODO : we should add ability to receive data from a form
* @param array $data the data from the form, if any
*/
public function initiateQuery(QueryBuilder $qb, array $requiredModifiers, $acl);
/**
* Return wether this export has a form.
*
* @return bool
*/
public function hasForm();
public function initiateQuery(QueryBuilder $qb, array $requiredModifiers, array $acl, array $data = array());
/**
* Inform which ModifiersInterface (i.e. AggregatorInterface, FilterInterface)