diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-05-20 03:05:41 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-05-20 03:05:41 +0400 |
commit | b2cb622bf1ea754a73ce06e165a083e3305aa807 (patch) | |
tree | 43bf1134201759cf73b88d53274fa87fdffebd0d /plugins/Actions/Menu.php | |
parent | 009a6f21177e8cb6366577d8f54024e896bb0d8e (diff) |
refs #5192 continued menu refactoring. not sure yet how good this idea is but seems to be already better than before
Diffstat (limited to 'plugins/Actions/Menu.php')
-rw-r--r-- | plugins/Actions/Menu.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/Actions/Menu.php b/plugins/Actions/Menu.php new file mode 100644 index 0000000000..10cd70f812 --- /dev/null +++ b/plugins/Actions/Menu.php @@ -0,0 +1,39 @@ +<?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ +namespace Piwik\Plugins\Actions; + +use Exception; +use Piwik\Common; +use Piwik\Db; +use Piwik\Menu\MenuAbstract; +use Piwik\Menu\MenuReporting; +use Piwik\Piwik; +use Piwik\Site; + +/** + */ +class Menu extends \Piwik\Plugin\Menu +{ + public function configureReportingMenu(MenuReporting $menu) + { + $menu->add('General_Actions', '', array('module' => 'Actions', 'action' => 'indexPageUrls'), true, 15); + $menu->add('General_Actions', 'General_Pages', array('module' => 'Actions', 'action' => 'indexPageUrls'), true, 1); + $menu->add('General_Actions', 'Actions_SubmenuPagesEntry', array('module' => 'Actions', 'action' => 'indexEntryPageUrls'), true, 2); + $menu->add('General_Actions', 'Actions_SubmenuPagesExit', array('module' => 'Actions', 'action' => 'indexExitPageUrls'), true, 3); + $menu->add('General_Actions', 'Actions_SubmenuPageTitles', array('module' => 'Actions', 'action' => 'indexPageTitles'), true, 4); + $menu->add('General_Actions', 'General_Outlinks', array('module' => 'Actions', 'action' => 'indexOutlinks'), true, 6); + $menu->add('General_Actions', 'General_Downloads', array('module' => 'Actions', 'action' => 'indexDownloads'), true, 7); + + $actions = new Actions(); + if ($actions->isSiteSearchEnabled()) { + $menu->add('General_Actions', 'Actions_SubmenuSitesearch', array('module' => 'Actions', 'action' => 'indexSiteSearch'), true, 5); + } + } + +} |