diff options
author | Emir Beganovic <beganovic.emir5@gmail.com> | 2016-02-16 13:44:22 +0300 |
---|---|---|
committer | Emir Beganovic <beganovic.emir5@gmail.com> | 2016-02-16 13:44:22 +0300 |
commit | 9acae0429167c8f987e8818834abf9cafa5bdf34 (patch) | |
tree | c080941d1a6b42647def55e54d0fbaccda3aed61 /core | |
parent | 2b1b13b560d3e113de538685d843255e27567732 (diff) |
Add missing docblocks
Diffstat (limited to 'core')
-rw-r--r-- | core/CronArchive.php | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/core/CronArchive.php b/core/CronArchive.php index 28ddf49ce9..b98566749b 100644 --- a/core/CronArchive.php +++ b/core/CronArchive.php @@ -265,6 +265,7 @@ class CronArchive * * @param string|null $processNewSegmentsFrom When to archive new segments from. See [General] process_new_segments_from * for possible values. + * @param LoggerInterface|null $logger */ public function __construct($processNewSegmentsFrom = null, LoggerInterface $logger = null) { @@ -712,9 +713,15 @@ class CronArchive return $success; } - /** - * Returns base URL to process reports for the $idSite on a given $period - */ + /** + * Returns base URL to process reports for the $idSite on a given $period + * + * @param string $idSite + * @param string $period + * @param string $date + * @param bool|false $segment + * @return string + */ private function getVisitsRequestUrl($idSite, $period, $date, $segment = false) { $request = "?module=API&method=API.get&idSite=$idSite&period=$period&date=" . $date . "&format=php"; @@ -839,6 +846,11 @@ class CronArchive return true; } + /** + * @param $idSite + * @param $period + * @return array + */ private function getSegmentsForSite($idSite, $period) { $segmentsAllSites = $this->segments; @@ -933,6 +945,8 @@ class CronArchive /** * Logs a section in the output + * + * @param string $title */ private function logSection($title = "") { @@ -968,6 +982,8 @@ class CronArchive /** * Issues a request to $url eg. "?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1" * + * @param string $url + * @return string */ private function request($url) { @@ -1053,6 +1069,7 @@ class CronArchive /** * @internal + * @param $api */ public function setApiToInvalidateArchivedReport($api) { @@ -1136,6 +1153,7 @@ class CronArchive /** * Detects whether a site had visits since midnight in the websites timezone * + * @param $idSite * @return bool */ private function hadWebsiteTrafficSinceMidnightInTimezone($idSite) @@ -1676,6 +1694,7 @@ class CronArchive /** * @param $idSite * @param $period + * @param $date */ private function logArchiveWebsite($idSite, $period, $date) { |