aggregators added - monthYearAggregator not finished

This commit is contained in:
2022-08-18 12:15:30 +02:00
parent 1de853a88b
commit 03d098e5e1
8 changed files with 492 additions and 1 deletions

View File

@@ -0,0 +1,49 @@
<?php
namespace Chill\CalendarBundle\Export\Aggregator;
use Chill\CalendarBundle\Export\Declarations;
use Chill\MainBundle\Export\AggregatorInterface;
use Closure;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Security\Core\Role\Role;
class MonthYearAggregator implements AggregatorInterface
{
public function getQueryKeys($data): array
{
return ['monty_year_aggregator'];
}
public function getLabels($key, array $values, $data): Closure
{
}
public function buildForm(FormBuilderInterface $builder)
{
// No form needed
}
public function getTitle(): string
{
return 'Group by month and year';
}
public function addRole(): ?Role
{
return null;
}
public function alterQuery(QueryBuilder $qb, $data)
{
// TODO: Implement alterQuery() method.
}
public function applyOn(): string
{
return [ Declarations::CALENDAR_TYPE ];
}
}