CoolCMS API

ProductImportStatisticsFormTrait.php

Table of Contents

Traits

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.
On this page

Search results