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:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-05-31 11:36:25 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-05-31 11:36:25 +0400
commit6abbacb9575087161ade571de2b0ad373b03d115 (patch)
tree4da27e6b31ffc2f62e0cb0b7ee2cecfd15de2c22 /core/Site.php
parentcbc929d0e6a10337c29c3459048611c23a2d2d65 (diff)
Refactored archive data querying code. Removed tree-like data structure from Piwik_Archive, added memory optimizations for archiving (not storing archive processing instances), added optimization for querying data indexed by site + date, added ability to select multiple blobs/metrics at once (from different plugins), added optimization to Piwik_ArchiveProcessing_Period where numerics/records are selected all at once instead of one at a time.
Also added data access layer object for archive querying code, allowed anonymous function objects to be used as DataTable filters, and removed 'timestamp' DataTable metadata.
Diffstat (limited to 'core/Site.php')
-rw-r--r--core/Site.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Site.php b/core/Site.php
index ae62ae0519..53a939256b 100644
--- a/core/Site.php
+++ b/core/Site.php
@@ -204,12 +204,13 @@ class Piwik_Site
* Checks the given string for valid site ids and returns them as an array
*
* @param string $ids comma separated idSite list
+ * @param false|string $_restrictSitesToLogin Used only when running as a scheduled task.
* @return array of valid integer
*/
- static public function getIdSitesFromIdSitesString($ids)
+ static public function getIdSitesFromIdSitesString($ids, $_restrictSitesToLogin = false)
{
if ($ids === 'all') {
- return Piwik_SitesManager_API::getInstance()->getSitesIdWithAtLeastViewAccess();
+ return Piwik_SitesManager_API::getInstance()->getSitesIdWithAtLeastViewAccess($_restrictSitesToLogin);
}
if (!is_array($ids)) {