diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-07-21 12:01:35 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-07-21 12:01:36 +0400 |
commit | aca8ec33a85e0a70b818b6227145041717d7a69e (patch) | |
tree | 41377e3a9737d63222522ef93ecf8483f3faddfa /core/Period/Month.php | |
parent | 0a63210e3eae7562af1a3dbee340eb1ee140db3d (diff) |
Refs #4059 Work in progress: Conversion to use Namespaces: Period*, Metrics, Segment, SegmentExpression, PluginsManager.
Removed some deprecated code.
Diffstat (limited to 'core/Period/Month.php')
-rw-r--r-- | core/Period/Month.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/Period/Month.php b/core/Period/Month.php index c65bc4179e..5434bd6efe 100644 --- a/core/Period/Month.php +++ b/core/Period/Month.php @@ -8,13 +8,15 @@ * @category Piwik * @package Piwik */ -use Piwik\Period; +namespace Piwik\Period; + +use Piwik\Period\Day; /** * @package Piwik * @subpackage Period */ -class Piwik_Period_Month extends Period +class Month extends Period { protected $label = 'month'; @@ -68,7 +70,7 @@ class Piwik_Period_Month extends Period $startMonth = $date->setDay(1); $currentDay = clone $startMonth; while ($currentDay->compareMonth($startMonth) == 0) { - $this->addSubperiod(new Piwik_Period_Day($currentDay)); + $this->addSubperiod(new Day($currentDay)); $currentDay = $currentDay->addDay(1); } } |