mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-12-02 08:28:30 +00:00
adapt to new ExportInterface
This commit is contained in:
@@ -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')
|
||||||
@@ -66,11 +66,6 @@ class CountActivity implements ExportInterface
|
|||||||
return $qb;
|
return $qb;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasForm()
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function supportsModifiers()
|
public function supportsModifiers()
|
||||||
{
|
{
|
||||||
return array('person', 'activity');
|
return array('person', 'activity');
|
||||||
|
|||||||
Reference in New Issue
Block a user