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:
authormattab <matthieu.aubry@gmail.com>2013-08-02 17:59:33 +0400
committermattab <matthieu.aubry@gmail.com>2013-08-02 17:59:33 +0400
commita96ec40e983a8b64f4c25def541a519ff3670e6a (patch)
treebef2a5f7b1e9532dc96161334e23a553cdff7ea1 /plugins/SegmentEditor/SegmentEditor.php
parent61997f45e4c39360000e815c9e0853ae04e2f56f (diff)
Refs #4059 Converting dozens of plugins/* classes to use Namespaces, \Piwik\Plugins\*
Added namespaces to functions.php files in the five plugins that had one Work in progress
Diffstat (limited to 'plugins/SegmentEditor/SegmentEditor.php')
-rw-r--r--plugins/SegmentEditor/SegmentEditor.php19
1 files changed, 12 insertions, 7 deletions
diff --git a/plugins/SegmentEditor/SegmentEditor.php b/plugins/SegmentEditor/SegmentEditor.php
index 5d1731c006..cc0146df90 100644
--- a/plugins/SegmentEditor/SegmentEditor.php
+++ b/plugins/SegmentEditor/SegmentEditor.php
@@ -6,17 +6,22 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @category Piwik_Plugins
- * @package Piwik_SegmentEditor
+ * @package SegmentEditor
*/
+namespace Piwik\Plugins\SegmentEditor;
+
+use Exception;
use Piwik\Common;
+use Piwik\Plugins\SegmentEditor\API;
+use Piwik\Plugins\SegmentEditor\Controller;
use Piwik\Version;
-use Piwik\Plugin;
use Piwik\Db;
+use Zend_Registry;
/**
- * @package Piwik_SegmentEditor
+ * @package SegmentEditor
*/
-class Piwik_SegmentEditor extends Plugin
+class SegmentEditor extends \Piwik\Plugin
{
/**
* @see Piwik_Plugin::getInformation
@@ -47,13 +52,13 @@ class Piwik_SegmentEditor extends Plugin
function getSegmentEditorHtml(&$out)
{
- $controller = new Piwik_SegmentEditor_Controller();
+ $controller = new Controller();
$out .= $controller->getSelector();
}
public function getKnownSegmentsToArchiveAllSites(&$segments)
{
- $segmentsToAutoArchive = Piwik_SegmentEditor_API::getInstance()->getAll($idSite = false, $returnAutoArchived = true);
+ $segmentsToAutoArchive = API::getInstance()->getAll($idSite = false, $returnAutoArchived = true);
foreach ($segmentsToAutoArchive as $segment) {
$segments[] = $segment['definition'];
}
@@ -61,7 +66,7 @@ class Piwik_SegmentEditor extends Plugin
public function getKnownSegmentsToArchiveForSite(&$segments, $idSite)
{
- $segmentToAutoArchive = Piwik_SegmentEditor_API::getInstance()->getAll($idSite, $returnAutoArchived = true);
+ $segmentToAutoArchive = API::getInstance()->getAll($idSite, $returnAutoArchived = true);
foreach ($segmentToAutoArchive as $segmentInfo) {
$segments[] = $segmentInfo['definition'];