diff options
author | johmathe <johmathe@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-04-11 17:38:22 +0400 |
---|---|---|
committer | johmathe <johmathe@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-04-11 17:38:22 +0400 |
commit | 862724121b8a0649bd983cd24c769006b40cec99 (patch) | |
tree | 399ba025aced393df840394ea4be1b731d90d3de /modules/Period.php | |
parent | 25a42b5ef313cf0555ee7a7a341a49af6f1b40a7 (diff) |
Convert txt files to unix format0.1.4
Diffstat (limited to 'modules/Period.php')
-rw-r--r-- | modules/Period.php | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/modules/Period.php b/modules/Period.php index 90d94bb707..f967aa0ff1 100644 --- a/modules/Period.php +++ b/modules/Period.php @@ -1,14 +1,14 @@ -<?php
-/**
- * Piwik - Open source web analytics
- *
- * @link http://piwik.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
- * @version $Id$
- *
- * @package Piwik_Helper
- */
-
+<?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id$ + * + * @package Piwik_Helper + */ + /** * Creating a new Piwik_Period subclass: * @@ -19,8 +19,8 @@ * } * that checks whether the subperiods have already been computed. * This is for performance improvements, computing the subperiods is done a per demand basis. - *
- *
+ * + * * @package Piwik_Helper */ abstract class Piwik_Period @@ -60,11 +60,11 @@ abstract class Piwik_Period break; } } -
- /**
- * Returns the first day of the period
- *
- * @return Piwik_Date First day of the period
+ + /** + * Returns the first day of the period + * + * @return Piwik_Date First day of the period */ public function getDateStart() { @@ -85,11 +85,11 @@ abstract class Piwik_Period } return $currentPeriod->getDate(); } -
- /**
- * Returns the last day of the period ; can be a date in the future
- *
- * @return Piwik_Date Last day of the period
+ + /** + * Returns the last day of the period ; can be a date in the future + * + * @return Piwik_Date Last day of the period */ public function getDateEnd() { @@ -114,7 +114,7 @@ abstract class Piwik_Period public function getId() { return Piwik::$idPeriods[$this->getLabel()]; - }
+ } public function getLabel() { @@ -124,11 +124,11 @@ abstract class Piwik_Period /** * * @return Piwik_Date - */
- protected function getDate()
- {
- return $this->date;
- }
+ */ + protected function getDate() + { + return $this->date; + } protected function checkInputDate($date) { @@ -380,10 +380,10 @@ class Piwik_Period_Range extends Piwik_Period return $range; } } -
-/**
- *
- * @package Piwik_Period
+ +/** + * + * @package Piwik_Period */ class Piwik_Period_Day extends Piwik_Period { @@ -425,10 +425,10 @@ class Piwik_Period_Day extends Piwik_Period } -
-/**
- *
- * @package Piwik_Period
+ +/** + * + * @package Piwik_Period */ class Piwik_Period_Week extends Piwik_Period { @@ -468,10 +468,10 @@ class Piwik_Period_Week extends Piwik_Period } } -
-/**
- *
- * @package Piwik_Period
+ +/** + * + * @package Piwik_Period */ class Piwik_Period_Month extends Piwik_Period { @@ -518,11 +518,11 @@ class Piwik_Period_Month extends Piwik_Period return ( date("m") > $this->date->get("m") && date("Y") == $year) || date("Y") > $year; } -}
-
-/**
- *
- * @package Piwik_Period
+} + +/** + * + * @package Piwik_Period */ class Piwik_Period_Year extends Piwik_Period { |