diff options
Diffstat (limited to 'plugins/ExampleVisualization')
-rw-r--r-- | plugins/ExampleVisualization/SimpleTable.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/ExampleVisualization/SimpleTable.php b/plugins/ExampleVisualization/SimpleTable.php index e38debf9c1..c6d40f3ecb 100644 --- a/plugins/ExampleVisualization/SimpleTable.php +++ b/plugins/ExampleVisualization/SimpleTable.php @@ -12,6 +12,7 @@ namespace Piwik\Plugins\ExampleVisualization; use Piwik\DataTable; +use Piwik\DataTable\DataTableInterface; use Piwik\ViewDataTable\Visualization; use Piwik\Visualization\Config; use Piwik\Visualization\Request; @@ -45,26 +46,21 @@ class SimpleTable extends Visualization // $requestProperties->filter_sort_order = 'desc'; } - public function beforeGenericFiltersAreAppliedToLoadedDataTable($dataTable, Config $properties, Request $request) + public function beforeGenericFiltersAreAppliedToLoadedDataTable(DataTableInterface $dataTable, Config $properties, Request $request) { // this hook is executed before generic filters like "filter_limit" and "filter_offset" are applied // Usage: // $dateTable->filter($nameOrClosure); } - public function afterGenericFiltersAreAppliedToLoadedDataTable($dataTable, Config $properties, Request $request) + public function afterGenericFiltersAreAppliedToLoadedDataTable(DataTableInterface $dataTable, Config $properties, Request $request) { // this hook is executed after generic filters like "filter_limit" and "filter_offset" are applied // Usage: // $dateTable->filter($nameOrClosure, $parameters); } - /** - * @param DataTable|DataTable\Map $dataTable - * @param \Piwik\Visualization\Config $properties - * @param \Piwik\Visualization\Request $request - */ - public function afterAllFilteresAreApplied($dataTable, Config $properties, Request $request) + public function afterAllFilteresAreApplied(DataTableInterface $dataTable, Config $properties, Request $request) { // this hook is executed after the data table is loaded and after all filteres are applied. // format your data here that you want to pass to the view |