CoolCMS API

ProductImportStatisticsFormTrait

Period choice for the summaries on `statistics`: 7 / 30 / 90 days. A plain (non-AJAX) form, like {@see \App\UI\Admin\Eshop\Components\StatisticsChartComponent\StatisticsChartControl::createComponentFilterForm()}: `onSuccess` stores the value in the persistent presenter property ({@see \App\UI\Admin\Eshop\Presenters\ProductImportPresenter::$period}) and `redirect('this')` reloads the page (the summary and the table of recent runs are recomputed for the new period). The "runs over time" chart ({@see \App\UI\Admin\Eshop\Components\StatisticsChartComponent\StatisticsChartControl}) has its own independent filter (date range + granularity); the two choices are deliberately not linked.

Table of Contents

Constants

STATISTICS_PERIOD_OPTIONS  : array<string|int, mixed> = [7, 30, 90]
Offered periods (days).

Methods

periodFormSucceeded()  : void
createComponentPeriodForm()  : Form

Constants

Methods

On this page

Search results