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:
Diffstat (limited to 'core/Segment.php')
-rw-r--r--core/Segment.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/Segment.php b/core/Segment.php
index aa39083cab..8e3e23cd9a 100644
--- a/core/Segment.php
+++ b/core/Segment.php
@@ -107,6 +107,16 @@ class Segment
}
}
+ /**
+ * Returns the segment expression.
+ * @return SegmentExpression
+ * @api since Piwik 3.2.0
+ */
+ public function getSegmentExpression()
+ {
+ return $this->segmentExpression;
+ }
+
private function getAvailableSegments()
{
// segment metadata
@@ -253,7 +263,7 @@ class Segment
&& $matchType != SegmentExpression::MATCH_IS_NULL_OR_EMPTY) {
if (isset($segment['sqlFilterValue'])) {
- $value = call_user_func($segment['sqlFilterValue'], $value);
+ $value = call_user_func($segment['sqlFilterValue'], $value, $segment['sqlSegment']);
}
// apply presentation filter