diff options
Diffstat (limited to 'plugins/FileSynchronizer/Menu.php')
-rw-r--r-- | plugins/FileSynchronizer/Menu.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/FileSynchronizer/Menu.php b/plugins/FileSynchronizer/Menu.php new file mode 100644 index 0000000000..608f52ebc7 --- /dev/null +++ b/plugins/FileSynchronizer/Menu.php @@ -0,0 +1,31 @@ +<?php +/** + * Copyright (C) Piwik PRO - All rights reserved. + * + * Using this code requires that you first get a license from Piwik PRO. + * Unauthorized copying of this file, via any medium is strictly prohibited. + * + * @link http://piwik.pro + */ + +namespace Piwik\Plugins\FileSynchronizer; + +use Piwik\Menu\MenuAdmin; +use Piwik\Piwik; + +/** + * This class allows you to add, remove or rename menu items. + * To configure a menu (such as Admin Menu, Top Menu, User Menu...) simply call the corresponding methods as + * described in the API-Reference http://developer.piwik.org/api-reference/Piwik/Menu/MenuAbstract + */ +class Menu extends \Piwik\Plugin\Menu +{ + + public function configureAdminMenu(MenuAdmin $menu) + { + if (Piwik::hasUserSuperUserAccess()) { + $menu->addDiagnosticItem('File Synchronizer', $this->urlForAction('status', array('limit' => 200))); + } + } + +} |