diff options
author | diosmosis <benaka@piwik.pro> | 2015-09-17 05:36:20 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-09-23 10:57:32 +0300 |
commit | bcbb7bcf3452ca369eb85e09174f1b16361c63c2 (patch) | |
tree | 5283ccb35877d3de28258f80cc63d1cd88313833 /core/Segment | |
parent | 2633e93aaefa0e811288a667e12faa703434e8c1 (diff) |
Decorate LogQueryBuilder in SegmentEditor through DI to add idSegments matching the segment being archiving in a comment in SQL. Includes addition of SegmentEditor::getSegmentsToAutoArchive() API method which caches the result so each individual aggregation query doesn't trigger an SQL query.
Diffstat (limited to 'core/Segment')
-rw-r--r-- | core/Segment/SegmentExpression.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Segment/SegmentExpression.php b/core/Segment/SegmentExpression.php index c307509bf1..be21337434 100644 --- a/core/Segment/SegmentExpression.php +++ b/core/Segment/SegmentExpression.php @@ -49,6 +49,11 @@ class SegmentExpression $this->tree = $this->parseTree(); } + public function getSegmentString() + { + return $this->string; + } + public function isEmpty() { return count($this->tree) == 0; |