DimensionSegmentFactory
This documentation is for an outdated Matomo version.
Click here if you want to read this article for the latest version.
Click here if you want to read this article for the latest version.
Piwik\Columns\
DimensionSegmentFactory
A factory to create segments from a dimension.
Methods
The class defines the following methods:
__construct()— Generates a new dimension segment factory.createSegment()— Creates a segment based on the dimension properties
__construct()
Generates a new dimension segment factory.
Signature
- It accepts the following parameter(s):
$dimension(Dimension) — A dimension instance the created segments should be based on.
createSegment()
Creates a segment based on the dimension properties