DimensionMetricFactory
Piwik\Columns\
DimensionMetricFactory
A factory to create metrics from a dimension.
Methods
The class defines the following methods:
__construct()— Generates a new dimension metric factory.createCustomMetric()createComputedMetric()createMetric()
__construct()
Generates a new dimension metric factory.
Signature
- It accepts the following parameter(s):
$dimension(Dimension) — A dimension instance the created metrics should be based on.
createCustomMetric()
Signature
It accepts the following parameter(s):
$metricName$readableName$aggregation$documentation$semanticType(string|null) —
It returns a
Piwik\Plugin\ArchivedMetricvalue.
createComputedMetric()
Signature
It accepts the following parameter(s):
$metricName1$metricName2$aggregation
It returns a
Piwik\Plugin\ComputedMetricvalue.
createMetric()
Signature
It accepts the following parameter(s):
$aggregation
It returns a
Piwik\Plugin\ArchivedMetricvalue.