diff options
Diffstat (limited to 'core/ArchiveProcessor/Rules.php')
-rw-r--r-- | core/ArchiveProcessor/Rules.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/core/ArchiveProcessor/Rules.php b/core/ArchiveProcessor/Rules.php index b8b91cd703..de856f470b 100644 --- a/core/ArchiveProcessor/Rules.php +++ b/core/ArchiveProcessor/Rules.php @@ -12,6 +12,7 @@ use Piwik\Config; use Piwik\Period; use Piwik\Piwik; use Piwik\Common; +use Piwik\Segment; use Piwik\Site; /** @@ -35,7 +36,7 @@ class Piwik_ArchiveProcessor_Rules * Returns the name of the archive field used to tell the status of an archive, (ie, * whether the archive was created successfully or not). * - * @param Piwik_Segment $segment + * @param Segment $segment * @param string $periodLabel * @param string $plugin * @return string @@ -48,7 +49,7 @@ class Piwik_ArchiveProcessor_Rules return self::getDoneFlagArchiveContainsAllPlugins($segment); } - public static function shouldProcessReportsAllPlugins(Piwik_Segment $segment, $periodLabel) + public static function shouldProcessReportsAllPlugins(Segment $segment, $periodLabel) { if ($segment->isEmpty() && $periodLabel != 'range') { return true; @@ -66,12 +67,12 @@ class Piwik_ArchiveProcessor_Rules return false; } - private static function getDoneFlagArchiveContainsOnePlugin(Piwik_Segment $segment, $plugin) + private static function getDoneFlagArchiveContainsOnePlugin(Segment $segment, $plugin) { return 'done' . $segment->getHash() . '.' . $plugin; } - private static function getDoneFlagArchiveContainsAllPlugins(Piwik_Segment $segment) + private static function getDoneFlagArchiveContainsAllPlugins(Segment $segment) { return 'done' . $segment->getHash(); } @@ -139,7 +140,7 @@ class Piwik_ArchiveProcessor_Rules return false; } - public static function getMinTimeProcessedForTemporaryArchive(Piwik_Date $dateStart, Period $period, Piwik_Segment $segment, Site $site) + public static function getMinTimeProcessedForTemporaryArchive(Piwik_Date $dateStart, Period $period, Segment $segment, Site $site) { $now = time(); $minimumArchiveTime = $now - Piwik_ArchiveProcessor_Rules::getTodayArchiveTimeToLive(); @@ -179,7 +180,7 @@ class Piwik_ArchiveProcessor_Rules return Config::getInstance()->General['time_before_today_archive_considered_outdated']; } - public static function isArchivingDisabledFor(Piwik_Segment $segment, $periodLabel) + public static function isArchivingDisabledFor(Segment $segment, $periodLabel) { if ($periodLabel == 'range') { return false; |