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/SegmentsList.php')
-rw-r--r--core/Segment/SegmentsList.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/Segment/SegmentsList.php b/core/Segment/SegmentsList.php
index 82ea86065e..448a4f1593 100644
--- a/core/Segment/SegmentsList.php
+++ b/core/Segment/SegmentsList.php
@@ -132,6 +132,20 @@ class SegmentsList
$dimension->configureSegments($list, new DimensionSegmentFactory($dimension));
}
+ /**
+ * Triggered to filter segment definitions.
+ *
+ * **Example**
+ *
+ * public function filterSegments(&$segmentList)
+ * {
+ * $segmentList->remove('Category');
+ * }
+ *
+ * @param SegmentsList $list An instance of the SegmentsList.
+ */
+ Piwik::postEvent('Segment.filterSegments', array($list));
+
$cache->save($cacheKey, $list);
return $list;