mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +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)
|
public function buildForm(\Symfony\Component\Form\FormBuilderInterface $builder)
|
||||||
{
|
{
|
||||||
throw new \LogicException('This export does not requires a form.');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getDescription()
|
public function getDescription()
|
||||||
@ -53,7 +53,7 @@ class CountActivity implements ExportInterface
|
|||||||
return 'activity';
|
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')
|
$qb->select('COUNT(activity.id) as export_count_activity')
|
||||||
->from('ChillActivityBundle:Activity', 'activity')
|
->from('ChillActivityBundle:Activity', 'activity')
|
||||||
@ -65,11 +65,6 @@ class CountActivity implements ExportInterface
|
|||||||
|
|
||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasForm()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function supportsModifiers()
|
public function supportsModifiers()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user