mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
adjust property name to make it work with changes calendar bundle
This commit is contained in:
parent
48548e020f
commit
2e3f977f3d
@ -85,6 +85,6 @@ final class AgentAggregator implements AggregatorInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Group appointments by agent';
|
||||
return 'Group calendars by agent';
|
||||
}
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ class CancelReasonAggregator implements AggregatorInterface
|
||||
|
||||
public function alterQuery(QueryBuilder $qb, $data)
|
||||
{
|
||||
// TODO: still needs to take into account appointments without a cancel reason somehow
|
||||
// TODO: still needs to take into account calendars without a cancel reason somehow
|
||||
if (!in_array('calcancel', $qb->getAllAliases(), true)) {
|
||||
$qb->join('cal.cancelReason', 'calcancel');
|
||||
}
|
||||
@ -88,6 +88,6 @@ class CancelReasonAggregator implements AggregatorInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Group appointments by cancel reason';
|
||||
return 'Group calendars by cancel reason';
|
||||
}
|
||||
}
|
||||
|
@ -87,6 +87,6 @@ final class JobAggregator implements AggregatorInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Group appointments by agent job';
|
||||
return 'Group calendars by agent job';
|
||||
}
|
||||
}
|
||||
|
@ -80,6 +80,6 @@ final class LocationAggregator implements AggregatorInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Group appointments by location';
|
||||
return 'Group calendars by location';
|
||||
}
|
||||
}
|
||||
|
@ -87,6 +87,6 @@ final class LocationTypeAggregator implements AggregatorInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Group appointments by location type';
|
||||
return 'Group calendars by location type';
|
||||
}
|
||||
}
|
||||
|
@ -55,10 +55,10 @@ class MonthYearAggregator implements AggregatorInterface
|
||||
return 'by month and year';
|
||||
}
|
||||
|
||||
$month = substr($value, 0, 2);
|
||||
$year = substr($value, 3, 4);
|
||||
$month = (int)substr($value, 0, 2);
|
||||
$year = (int)substr($value, 3, 4);
|
||||
|
||||
return strftime('%B %G', mktime(0, 0, 0, $month, '1', $year));
|
||||
return strftime('%B %G', mktime(0, 0, 0, $month, 1, $year));
|
||||
};
|
||||
}
|
||||
|
||||
@ -69,6 +69,6 @@ class MonthYearAggregator implements AggregatorInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Group appointments by month and year';
|
||||
return 'Group calendars by month and year';
|
||||
}
|
||||
}
|
||||
|
@ -87,6 +87,6 @@ final class ScopeAggregator implements AggregatorInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Group appointments by agent scope';
|
||||
return 'Group calendars by agent scope';
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,8 @@ use Closure;
|
||||
use Doctrine\ORM\AbstractQuery;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Process\Exception\LogicException;
|
||||
use Symfony\Component\Validator\Exception\LogicException;
|
||||
|
||||
|
||||
class CountCalendars implements ExportInterface, GroupedExportInterface
|
||||
{
|
||||
@ -44,7 +45,7 @@ class CountCalendars implements ExportInterface, GroupedExportInterface
|
||||
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'Count appointments by various parameters.';
|
||||
return 'Count calendars by various parameters.';
|
||||
}
|
||||
|
||||
public function getGroup(): string
|
||||
@ -78,7 +79,7 @@ class CountCalendars implements ExportInterface, GroupedExportInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Count appointments';
|
||||
return 'Count calendars';
|
||||
}
|
||||
|
||||
public function getType(): string
|
||||
|
@ -44,7 +44,7 @@ class StatCalendarAvgDuration implements ExportInterface, GroupedExportInterface
|
||||
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'Get the average of appointment duration according to various filters';
|
||||
return 'Get the average of calendar duration according to various filters';
|
||||
}
|
||||
|
||||
public function getGroup(): string
|
||||
@ -78,7 +78,7 @@ class StatCalendarAvgDuration implements ExportInterface, GroupedExportInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Average appointment duration';
|
||||
return 'Average calendar duration';
|
||||
}
|
||||
|
||||
public function getType(): string
|
||||
|
@ -44,7 +44,7 @@ class StatCalendarSumDuration implements ExportInterface, GroupedExportInterface
|
||||
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'Get the sum of appointment durations according to various filters';
|
||||
return 'Get the sum of calendar durations according to various filters';
|
||||
}
|
||||
|
||||
public function getGroup(): string
|
||||
@ -78,7 +78,7 @@ class StatCalendarSumDuration implements ExportInterface, GroupedExportInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Sum of appointment durations';
|
||||
return 'Sum of calendar durations';
|
||||
}
|
||||
|
||||
public function getType(): string
|
||||
|
@ -82,6 +82,6 @@ class AgentFilter implements FilterInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Filter appointments by agent';
|
||||
return 'Filter calendars by agent';
|
||||
}
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ class BetweenDatesFilter implements FilterInterface
|
||||
|
||||
public function describeAction($data, $format = 'string'): array
|
||||
{
|
||||
return ['Filtered by appointments between %dateFrom% and %dateTo%', [
|
||||
return ['Filtered by calendars between %dateFrom% and %dateTo%', [
|
||||
'%dateFrom%' => $data['date_from']->format('d-m-Y'),
|
||||
'%dateTo%' => $data['date_to']->format('d-m-Y'),
|
||||
]];
|
||||
@ -74,6 +74,6 @@ class BetweenDatesFilter implements FilterInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Filter appointments between certain dates';
|
||||
return 'Filter calendars between certain dates';
|
||||
}
|
||||
}
|
||||
|
@ -95,6 +95,6 @@ class JobFilter implements FilterInterface
|
||||
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Filter appointments by agent job';
|
||||
return 'Filter calendars by agent job';
|
||||
}
|
||||
}
|
||||
|
@ -95,6 +95,6 @@ class ScopeFilter implements FilterInterface
|
||||
|
||||
public function getTitle()
|
||||
{
|
||||
return 'Filter appointments by agent scope';
|
||||
return 'Filter calendars by agent scope';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user