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-07-20 11:09:46 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-20 11:09:46 +0400
commit0a63210e3eae7562af1a3dbee340eb1ee140db3d (patch)
treec9f7c3a36a4b344b25c12aa04fed0733efb3bfa0 /plugins/ExampleUI
parent7ca35544d15cdb41b17283e693c8a14777c923ad (diff)
Converting to namespace: Period*, Metrics, Segment, SegmentExpression, PluginsManager
Diffstat (limited to 'plugins/ExampleUI')
-rw-r--r--plugins/ExampleUI/API.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/ExampleUI/API.php b/plugins/ExampleUI/API.php
index 697844a589..87bc64a88c 100644
--- a/plugins/ExampleUI/API.php
+++ b/plugins/ExampleUI/API.php
@@ -8,6 +8,7 @@
* @category Piwik_Plugins
* @package Piwik_ExampleUI
*/
+use Piwik\Period_Range;
/**
* ExampleUI API is also an example API useful if you are developing a Piwik plugin.
@@ -31,7 +32,7 @@ class Piwik_ExampleUI_API
public function getTemperaturesEvolution($date, $period)
{
- $period = new Piwik_Period_Range($period, 'last30');
+ $period = new Period_Range($period, 'last30');
$dateStart = $period->getDateStart()->toString('Y-m-d'); // eg. "2009-04-01"
$dateEnd = $period->getDateEnd()->toString('Y-m-d'); // eg. "2009-04-30"