diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-07-20 11:09:46 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-07-20 11:09:46 +0400 |
commit | 0a63210e3eae7562af1a3dbee340eb1ee140db3d (patch) | |
tree | c9f7c3a36a4b344b25c12aa04fed0733efb3bfa0 /plugins/ExampleUI/API.php | |
parent | 7ca35544d15cdb41b17283e693c8a14777c923ad (diff) |
Converting to namespace: Period*, Metrics, Segment, SegmentExpression, PluginsManager
Diffstat (limited to 'plugins/ExampleUI/API.php')
-rw-r--r-- | plugins/ExampleUI/API.php | 3 |
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" |