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 10:55:54 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-20 10:55:54 +0400
commit7ca35544d15cdb41b17283e693c8a14777c923ad (patch)
tree7f2fea58e44ed81147da163874060200f750fa44 /core/Archive.php
parent66536db9562185ba7e98ca3ef3a4349ca92b8c45 (diff)
Converting to namespace: Period, Site
Diffstat (limited to 'core/Archive.php')
-rw-r--r--core/Archive.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/Archive.php b/core/Archive.php
index 993390b46d..5ba77c6523 100644
--- a/core/Archive.php
+++ b/core/Archive.php
@@ -122,19 +122,19 @@ class Archive
*/
public static function build($idSites, $period, $strDate, $segment = false, $_restrictSitesToLogin = false)
{
- $websiteIds = Piwik_Site::getIdSitesFromIdSitesString($idSites, $_restrictSitesToLogin);
+ $websiteIds = Site::getIdSitesFromIdSitesString($idSites, $_restrictSitesToLogin);
- if (Piwik_Period::isMultiplePeriod($strDate, $period)) {
+ if (Period::isMultiplePeriod($strDate, $period)) {
$oPeriod = new Piwik_Period_Range($period, $strDate);
$allPeriods = $oPeriod->getSubperiods();
} else {
- $timezone = count($websiteIds) == 1 ? Piwik_Site::getTimezoneFor($websiteIds[0]) : false;
- $oPeriod = Piwik_Period::makePeriodFromQueryParams($timezone, $period, $strDate);
+ $timezone = count($websiteIds) == 1 ? Site::getTimezoneFor($websiteIds[0]) : false;
+ $oPeriod = Period::makePeriodFromQueryParams($timezone, $period, $strDate);
$allPeriods = array($oPeriod);
}
$segment = new Piwik_Segment($segment, $websiteIds);
$idSiteIsAll = $idSites == self::REQUEST_ALL_WEBSITES_FLAG;
- $isMultipleDate = Piwik_Period::isMultiplePeriod($strDate, $period);
+ $isMultipleDate = Period::isMultiplePeriod($strDate, $period);
return Archive::factory($segment, $allPeriods, $websiteIds, $idSiteIsAll, $isMultipleDate);
}
@@ -431,7 +431,7 @@ class Archive
{
$today = Piwik_Date::today();
- /* @var Piwik_Period $period */
+ /* @var Period $period */
foreach ($this->params->getPeriods() as $period) {
$periodStr = $period->getRangeString();
@@ -439,7 +439,7 @@ class Archive
$twoDaysAfterPeriod = $period->getDateEnd()->addDay(2);
foreach ($this->params->getIdSites() as $idSite) {
- $site = new Piwik_Site($idSite);
+ $site = new Site($idSite);
// if the END of the period is BEFORE the website creation date
// we already know there are no stats for this period