diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-10-17 06:44:55 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-10-17 06:44:55 +0400 |
commit | a65aef2a98525d2a906c224ef25703cb39b918d2 (patch) | |
tree | 44f46859ac3c01cd16bd12b3911dde0eba2e186b /plugins/ExampleVisualization | |
parent | c1a3d6e5b1002e082a1cbca1dd000c03628df48b (diff) |
do not use the init method
Diffstat (limited to 'plugins/ExampleVisualization')
-rw-r--r-- | plugins/ExampleVisualization/SimpleTable.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/ExampleVisualization/SimpleTable.php b/plugins/ExampleVisualization/SimpleTable.php index 304d69efb9..881f13cc81 100644 --- a/plugins/ExampleVisualization/SimpleTable.php +++ b/plugins/ExampleVisualization/SimpleTable.php @@ -24,14 +24,6 @@ class SimpleTable extends Visualization const FOOTER_ICON_TITLE = 'Simple Table'; const FOOTER_ICON = 'plugins/ExampleVisualization/images/table.png'; - /** - * You do not have to implement the init method. It is just an example how to assign view variables. - */ - public function init() - { - $this->assignTemplateVar('vizTitle', 'MyAwesomeTitle'); - } - public function configureVisualization() { // Configure how your visualization should look like, for instance you can disable search @@ -62,6 +54,7 @@ class SimpleTable extends Visualization { // 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 - // $this->myCustomViewVariable = $dataTable->getRows(); + + $this->assignTemplateVar('vizTitle', 'MyAwesomeTitle'); } }
\ No newline at end of file |