mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
adapt to new ExportInterface
This commit is contained in:
parent
7619b41cd4
commit
42f7bdb742
@ -35,7 +35,7 @@ class CountActivity implements ExportInterface
|
||||
|
||||
public function buildForm(\Symfony\Component\Form\FormBuilderInterface $builder)
|
||||
{
|
||||
throw new \LogicException('This export does not requires a form.');
|
||||
|
||||
}
|
||||
|
||||
public function getDescription()
|
||||
@ -53,7 +53,7 @@ class CountActivity implements ExportInterface
|
||||
return 'activity';
|
||||
}
|
||||
|
||||
public function initiateQuery(QueryBuilder $qb, array $requiredModifiers, $acl)
|
||||
public function initiateQuery(QueryBuilder $qb, array $requiredModifiers, array $acl, array $data = array())
|
||||
{
|
||||
$qb->select('COUNT(activity.id) as export_count_activity')
|
||||
->from('ChillActivityBundle:Activity', 'activity')
|
||||
@ -65,11 +65,6 @@ class CountActivity implements ExportInterface
|
||||
|
||||
return $qb;
|
||||
}
|
||||
|
||||
public function hasForm()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function supportsModifiers()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user