phpDocumentor

SummarizableTimespanFactory
in package

Table of Contents

$datetimeMap  : array<string|int, string>
$textManager  : TextManager
__construct()  : mixed
Constructor.
createAll()  : SummarizableTimespans
Return all time spans.
createForTheWholePeriod()  : Timespan
Return whole period.
createFromString()  : SummarizableTimespan
Return time span by provided name.

Properties

$datetimeMap

private array<string|int, string> $datetimeMap = ['today' => ['partialsTimespan' => ['from' => 'this week', 'to' => 'this week +6 days'], 'summerizer' => GambioAdminModulesDashboardStatisticsAppSummarizerWeekSummarizer::class, 'totalsTimespan' => ['from' => 'today', 'to' => 'today']], 'thisweek' => ['partialsTimespan' => ['from' => 'this week', 'to' => 'this week +6 days'], 'summerizer' => GambioAdminModulesDashboardStatisticsAppSummarizerWeekSummarizer::class, 'totalsTimespan' => ['from' => 'this week', 'to' => 'this week +6 days']], 'last7days' => ['partialsTimespan' => ['from' => 'today -7 days', 'to' => 'yesterday'], 'summerizer' => GambioAdminModulesDashboardStatisticsAppSummarizerWeekSummarizer::class, 'totalsTimespan' => ['from' => 'today -7 days', 'to' => 'yesterday']], 'thismonth' => ['partialsTimespan' => ['from' => 'first day of this month', 'to' => 'last day of this month'], 'summerizer' => GambioAdminModulesDashboardStatisticsAppSummarizerMonthSummarizer::class, 'totalsTimespan' => ['from' => 'first day of this month', 'to' => 'last day of this month']], 'last28days' => ['partialsTimespan' => ['from' => 'today -28 days', 'to' => 'yesterday'], 'summerizer' => GambioAdminModulesDashboardStatisticsAppSummarizerMonthSummarizer::class, 'totalsTimespan' => ['from' => 'today -28 days', 'to' => 'yesterday']], 'thisyear' => ['partialsTimespan' => ['from' => 'first day of january this year', 'to' => 'last day of december this year'], 'summerizer' => GambioAdminModulesDashboardStatisticsAppSummarizerYearSummarizer::class, 'totalsTimespan' => ['from' => 'first day of january this year', 'to' => 'last day of december this year']], 'last12months' => ['partialsTimespan' => ['from' => 'first day of this month -12 months', 'to' => 'last day of last month'], 'summerizer' => GambioAdminModulesDashboardStatisticsAppSummarizerYearSummarizer::class, 'totalsTimespan' => ['from' => 'first day of this month -12 months', 'to' => 'last day of last month']]]

Methods

Search results