diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-05-31 11:36:25 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-05-31 11:36:25 +0400 |
commit | 6abbacb9575087161ade571de2b0ad373b03d115 (patch) | |
tree | 4da27e6b31ffc2f62e0cb0b7ee2cecfd15de2c22 /core/Period.php | |
parent | cbc929d0e6a10337c29c3459048611c23a2d2d65 (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/Period.php')
-rw-r--r-- | core/Period.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Period.php b/core/Period.php index 6e6d4cf4d6..b004f1731a 100644 --- a/core/Period.php +++ b/core/Period.php @@ -265,4 +265,9 @@ abstract class Piwik_Period abstract public function getLocalizedShortString(); abstract public function getLocalizedLongString(); + + public function getRangeString() + { + return $this->getDateStart()->toString("Y-m-d").",".$this->getDateEnd()->toString("Y-m-d"); + } } |