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
Constants
STATISTICS_PERIOD_OPTIONS
Offered periods (days).
private
array<string|int, mixed>
STATISTICS_PERIOD_OPTIONS
= [7, 30, 90]
Methods
periodFormSucceeded()
public
periodFormSucceeded(Form $form, ArrayHash $values) : void
Parameters
- $form : Form
- $values : ArrayHash
createComponentPeriodForm()
protected
createComponentPeriodForm() : Form