update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -8,9 +8,8 @@
|
|||
*/
|
||||
namespace Piwik\Plugins\Actions;
|
||||
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\Report;
|
||||
use Piwik\View;
|
||||
use Piwik\ViewDataTable\Factory;
|
||||
|
||||
/**
|
||||
* Actions controller
|
||||
|
|
@ -22,130 +21,25 @@ class Controller extends \Piwik\Plugin\Controller
|
|||
// Actions that render whole pages
|
||||
//
|
||||
|
||||
public function indexPageUrls()
|
||||
{
|
||||
return View::singleReport(
|
||||
Piwik::translate('General_Pages'),
|
||||
$this->getPageUrls(true));
|
||||
}
|
||||
|
||||
public function indexEntryPageUrls()
|
||||
{
|
||||
return View::singleReport(
|
||||
Piwik::translate('Actions_SubmenuPagesEntry'),
|
||||
$this->getEntryPageUrls(true));
|
||||
}
|
||||
|
||||
public function indexExitPageUrls()
|
||||
{
|
||||
return View::singleReport(
|
||||
Piwik::translate('Actions_SubmenuPagesExit'),
|
||||
$this->getExitPageUrls(true));
|
||||
}
|
||||
|
||||
public function indexSiteSearch()
|
||||
{
|
||||
$view = new View('@Actions/indexSiteSearch');
|
||||
|
||||
$view->keywords = $this->getSiteSearchKeywords(true);
|
||||
$view->noResultKeywords = $this->getSiteSearchNoResultKeywords(true);
|
||||
$view->pagesUrlsFollowingSiteSearch = $this->getPageUrlsFollowingSiteSearch(true);
|
||||
$keyword = Report::factory($this->pluginName, 'getSiteSearchKeywords');
|
||||
$noResult = Report::factory($this->pluginName, 'getSiteSearchNoResultKeywords');
|
||||
$pageUrls = Report::factory($this->pluginName, '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 = Report::factory($this->pluginName, 'getSiteSearchCategories');
|
||||
$view->categories = $categories->render();
|
||||
}
|
||||
|
||||
return $view->render();
|
||||
}
|
||||
|
||||
public function indexPageTitles()
|
||||
{
|
||||
return View::singleReport(
|
||||
Piwik::translate('Actions_SubmenuPageTitles'),
|
||||
$this->getPageTitles(true));
|
||||
}
|
||||
|
||||
public function indexDownloads()
|
||||
{
|
||||
return View::singleReport(
|
||||
Piwik::translate('General_Downloads'),
|
||||
$this->getDownloads(true));
|
||||
}
|
||||
|
||||
public function indexOutlinks()
|
||||
{
|
||||
return View::singleReport(
|
||||
Piwik::translate('General_Outlinks'),
|
||||
$this->getOutlinks(true));
|
||||
}
|
||||
|
||||
//
|
||||
// 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__);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue