diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-11-01 01:38:22 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-11-01 01:38:22 +0400 |
commit | b2bcbbe5e3442c3fcfdd7392c93c36f785a8be7a (patch) | |
tree | dc73631493d207169cb2d3a5be058dd770392a04 /plugins/ExamplePlugin/ExamplePlugin.php | |
parent | 3e16dd59c1dbe5e846940251cc544d22abdbc09f (diff) |
refs #4209 removed deprecated example plugin
Diffstat (limited to 'plugins/ExamplePlugin/ExamplePlugin.php')
-rw-r--r-- | plugins/ExamplePlugin/ExamplePlugin.php | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/plugins/ExamplePlugin/ExamplePlugin.php b/plugins/ExamplePlugin/ExamplePlugin.php deleted file mode 100644 index 6bf92427a2..0000000000 --- a/plugins/ExamplePlugin/ExamplePlugin.php +++ /dev/null @@ -1,60 +0,0 @@ -<?php -/** - * Piwik - Open source web analytics - * - * @link http://piwik.org - * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - * - * @category Piwik_Plugins - * @package ExamplePlugin - */ -namespace Piwik\Plugins\ExamplePlugin; - -use Piwik\WidgetsList; - -/** - * - * @package ExamplePlugin - */ -class ExamplePlugin extends \Piwik\Plugin -{ - /** - * @see Piwik_Plugin::getListHooksRegistered - */ - public function getListHooksRegistered() - { - return array( -// 'Controller.renderView' => 'addUniqueVisitorsColumnToGivenReport', - 'WidgetsList.addWidgets' => 'addWidgets', - ); - } - - function activate() - { - // Executed every time plugin is Enabled - } - - function deactivate() - { - // Executed every time plugin is disabled - } - - public function addUniqueVisitorsColumnToGivenReport($view) - { - $view = $view['view']; - if ($view->getCurrentControllerName() == 'Referrers' - && $view->getCurrentControllerAction() == 'getWebsites' - ) { - $view->columns_to_display[] = 'nb_uniq_visitors'; - } - } - - public function addWidgets() - { - // we register the widgets so they appear in the "Add a new widget" window in the dashboard - // Note that the first two parameters can be either a normal string, or an index to a translation string - WidgetsList::add('ExamplePlugin_exampleWidgets', 'ExamplePlugin_exampleWidget', 'ExamplePlugin', 'exampleWidget'); - WidgetsList::add('ExamplePlugin_exampleWidgets', 'ExamplePlugin_photostreamMatt', 'ExamplePlugin', 'photostreamMatt'); - WidgetsList::add('ExamplePlugin_exampleWidgets', 'ExamplePlugin_piwikForumVisits', 'ExamplePlugin', 'piwikDownloads'); - } -} |