Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2013-10-15 06:14:26 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-10-15 06:14:26 +0400
commitc23052df08493a0ecba22d1224d773073102e3ea (patch)
tree8a77bdaa93798efcab482c6fced27e496e1da16e /plugins/ExampleVisualization
parente8a97cb44f402ae748640cab49d061997959e71f (diff)
adjusted some visualizations to the new viewdatatable structure, the platform is displaying some data again
Diffstat (limited to 'plugins/ExampleVisualization')
-rw-r--r--plugins/ExampleVisualization/SimpleTable.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/ExampleVisualization/SimpleTable.php b/plugins/ExampleVisualization/SimpleTable.php
index abd5c8aff2..07e686e8fd 100644
--- a/plugins/ExampleVisualization/SimpleTable.php
+++ b/plugins/ExampleVisualization/SimpleTable.php
@@ -13,7 +13,7 @@ namespace Piwik\Plugins\ExampleVisualization;
use Piwik\DataTable;
use Piwik\DataTable\DataTableInterface;
-use Piwik\ViewDataTable\Visualization;
+use Piwik\Plugin\Visualization;
use Piwik\Visualization\Config;
use Piwik\Visualization\Request;
@@ -34,33 +34,33 @@ class SimpleTable extends Visualization
$this->vizTitle = 'MyAwesomeTitle';
}
- public function configureVisualization(Config $properties)
+ public function configureVisualization()
{
// Configure how your visualization should look like, for instance you can disable search
- // $properties->show_search = false
+ // $this->config->show_search = false
}
- public function beforeLoadDataTable(Request $request, Config $properties)
+ public function beforeLoadDataTable()
{
// Here you can change the request that is sent to the API, for instance
- // $properties->filter_sort_order = 'desc';
+ // $this->requestConfig->filter_sort_order = 'desc';
}
- public function beforeGenericFiltersAreAppliedToLoadedDataTable(DataTableInterface $dataTable, Config $properties, Request $request)
+ public function beforeGenericFiltersAreAppliedToLoadedDataTable()
{
// this hook is executed before generic filters like "filter_limit" and "filter_offset" are applied
// Usage:
- // $dateTable->filter($nameOrClosure);
+ // $this->dateTable->filter($nameOrClosure);
}
- public function afterGenericFiltersAreAppliedToLoadedDataTable(DataTableInterface $dataTable, Config $properties, Request $request)
+ public function afterGenericFiltersAreAppliedToLoadedDataTable()
{
// this hook is executed after generic filters like "filter_limit" and "filter_offset" are applied
// Usage:
- // $dateTable->filter($nameOrClosure, $parameters);
+ // $this->dateTable->filter($nameOrClosure, $parameters);
}
- public function afterAllFilteresAreApplied(DataTableInterface $dataTable, Config $properties, Request $request)
+ public function afterAllFilteresAreApplied()
{
// 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