Helper method that will access a metric in a {@link Piwik\DataTable\Row} or array either by
its name or by its special numerical index value.
public static getMetric ( |
||
$row | ||
$columnName | string | |
$mappingNameToId | int[] | null | A custom mapping of metric names to special index values. By default {@link Metrics::getMappingFromNameToId()} is used. |
return | mixed | The metric value or false if none exists. |