diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-18 09:13:42 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-06-18 09:14:14 +0400 |
commit | 79ec9d19368dbe49b4dbb34bb4762784962b3652 (patch) | |
tree | 0a2e6d648bd9767cb0c458ca4cc6f3f9adb3c503 /plugins/Actions/Controller.php | |
parent | c6f7e78c537921bda68b51c993ada8a220f896c1 (diff) |
this is epic... by rendering the reports this way we can remove a lot of duplicated, unneeded code while having backwards compatible urls, developers are still able to completely overwrite the reports controller action, we fix some issues where CoreHome.renderWidget was reported in dispatch events instead of the actual module/action -> fixes also some security issues and most saved params for reports work again. Hope it works as expected
Diffstat (limited to 'plugins/Actions/Controller.php')
-rw-r--r-- | plugins/Actions/Controller.php | 89 |
1 files changed, 6 insertions, 83 deletions
diff --git a/plugins/Actions/Controller.php b/plugins/Actions/Controller.php index 0ebb8f91e8..e2fdbf9ad8 100644 --- a/plugins/Actions/Controller.php +++ b/plugins/Actions/Controller.php @@ -48,113 +48,36 @@ class Controller extends \Piwik\Plugin\Controller public function indexPageUrls() { - return View::singleReport( - Piwik::translate('General_Pages'), - $this->getPageUrls(true)); + return View::singleReport(Piwik::translate('General_Pages'), $this->renderReport('getPageUrls')); } public function indexEntryPageUrls() { - return View::singleReport( - Piwik::translate('Actions_SubmenuPagesEntry'), - $this->getEntryPageUrls(true)); + return View::singleReport(Piwik::translate('Actions_SubmenuPagesEntry'), $this->renderReport('getEntryPageUrls')); } public function indexExitPageUrls() { - return View::singleReport( - Piwik::translate('Actions_SubmenuPagesExit'), - $this->getExitPageUrls(true)); + return View::singleReport(Piwik::translate('Actions_SubmenuPagesExit'), $this->renderReport('getExitPageUrls')); } public function indexPageTitles() { - return View::singleReport( - Piwik::translate('Actions_SubmenuPageTitles'), - $this->getPageTitles(true)); + return View::singleReport(Piwik::translate('Actions_SubmenuPageTitles'), $this->renderReport('getPageTitles')); } public function indexDownloads() { - return View::singleReport( - Piwik::translate('General_Downloads'), - $this->getDownloads(true)); + return View::singleReport(Piwik::translate('General_Downloads'), $this->renderReport('getDownloads')); } public function indexOutlinks() { - return View::singleReport( - Piwik::translate('General_Outlinks'), - $this->getOutlinks(true)); + return View::singleReport(Piwik::translate('General_Outlinks'), $this->renderReport('getOutlinks')); } // // Actions that render individual reports // - public function getPageUrls() - { - return $this->renderReport(__FUNCTION__); - } - - public function getEntryPageUrls() - { - return $this->renderReport(__FUNCTION__); - } - - public function getExitPageUrls() - { - return $this->renderReport(__FUNCTION__); - } - - public function getSiteSearchKeywords() - { - return $this->renderReport(__FUNCTION__); - } - - public function getSiteSearchNoResultKeywords() - { - return $this->renderReport(__FUNCTION__); - } - - public function getSiteSearchCategories() - { - return $this->renderReport(__FUNCTION__); - } - - public function getPageUrlsFollowingSiteSearch() - { - return $this->renderReport(__FUNCTION__); - } - - public function getPageTitlesFollowingSiteSearch() - { - return $this->renderReport(__FUNCTION__); - } - - public function getPageTitles() - { - return $this->renderReport(__FUNCTION__); - } - - public function getEntryPageTitles() - { - return $this->renderReport(__FUNCTION__); - } - - public function getExitPageTitles() - { - return $this->renderReport(__FUNCTION__); - } - - public function getDownloads() - { - return $this->renderReport(__FUNCTION__); - } - - public function getOutlinks() - { - return $this->renderReport(__FUNCTION__); - } - } |