Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-06-11 09:52:22 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-06-11 09:52:22 +0400
commitf52c1e83aef857b6cf073f1f9fb00c6982f8d7d2 (patch)
treea4e7dbc78df2c801b2b9d11364f94022768de28f /plugins/Actions/Controller.php
parent4f2e01d20a8027cf545613d883e4ef22267c1cc1 (diff)
converted more reports, segments, dimensions, ... not finished yet
Diffstat (limited to 'plugins/Actions/Controller.php')
-rw-r--r--plugins/Actions/Controller.php43
1 files changed, 14 insertions, 29 deletions
diff --git a/plugins/Actions/Controller.php b/plugins/Actions/Controller.php
index f5fc875c18..4f7b2a0a1f 100644
--- a/plugins/Actions/Controller.php
+++ b/plugins/Actions/Controller.php
@@ -9,6 +9,10 @@
namespace Piwik\Plugins\Actions;
use Piwik\Piwik;
+use Piwik\Plugins\Actions\Reports\GetPageUrlsFollowingSiteSearch;
+use Piwik\Plugins\Actions\Reports\GetSiteSearchCategories;
+use Piwik\Plugins\Actions\Reports\GetSiteSearchKeywords;
+use Piwik\Plugins\Actions\Reports\GetSiteSearchNoResultKeywords;
use Piwik\View;
/**
@@ -25,40 +29,21 @@ class Controller extends \Piwik\Plugin\Controller
{
$view = new View('@Actions/indexSiteSearch');
- $view->keywords = $this->getSiteSearchKeywords(true);
- $view->noResultKeywords = $this->getSiteSearchNoResultKeywords(true);
- $view->pagesUrlsFollowingSiteSearch = $this->getPageUrlsFollowingSiteSearch(true);
+ $keyword = new GetSiteSearchKeywords();
+ $noResult = new GetSiteSearchNoResultKeywords();
+ $pageUrls = new GetPageUrlsFollowingSiteSearch();
- $categoryTrackingEnabled = \Piwik\Plugin\Manager::getInstance()->isPluginActivated('CustomVariables');
+ $view->keywords = $keyword->render();
+ $view->noResultKeywords = $noResult->render();
+ $view->pagesUrlsFollowingSiteSearch = $pageUrls->render();
+
+ $categoryTrackingEnabled = Actions::isCustomVariablesPluginsEnabled();
if ($categoryTrackingEnabled) {
- $view->categories = $this->getSiteSearchCategories(true);
+ $categories = new GetSiteSearchCategories();
+ $view->categories = $categories->render();
}
return $view->render();
}
- 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__);
- }
}