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:
Diffstat (limited to 'plugins/Contents/Controller.php')
-rw-r--r--plugins/Contents/Controller.php51
1 files changed, 0 insertions, 51 deletions
diff --git a/plugins/Contents/Controller.php b/plugins/Contents/Controller.php
deleted file mode 100644
index a17ec3fdce..0000000000
--- a/plugins/Contents/Controller.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
- * Piwik - free/libre analytics platform
- *
- * @link http://piwik.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- *
- */
-namespace Piwik\Plugins\Contents;
-
-use Piwik\Plugin\Report;
-use Piwik\View;
-
-class Controller extends \Piwik\Plugin\Controller
-{
-
- public function index()
- {
- $reportsView = new View\ReportsByDimension('Contents');
-
- /** @var \Piwik\Plugin\Report[] $reports */
- $contentNames = Report::factory($this->pluginName, 'getContentNames');
- $contentPieces = Report::factory($this->pluginName, 'getContentPieces');
- $reports = array($contentNames, $contentPieces);
-
- foreach($reports as $report) {
- $reportsView->addReport(
- $report->getCategory(),
- $report->getName(),
- 'Contents.' . Report::PREFIX_ACTION_IN_MENU . ucfirst($report->getAction())
- );
- }
-
- return $reportsView->render();
- }
-
- public function menuGetContentNames()
- {
- $report = Report::factory($this->pluginName, 'getContentNames');
-
- return View::singleReport($report->getName(), $report->render());
- }
-
- public function menuGetContentPieces()
- {
- $report = Report::factory($this->pluginName, 'getContentPieces');
-
- return View::singleReport($report->getName(), $report->render());
- }
-
-}