public static function getProcessedMetricsForTable(DataTable $dataTable, Report $report = null)
    {
        /** @var ProcessedMetric[] $metrics */
        $metrics = self::getMetricsForTable($dataTable, $report, 'Piwik\\Plugin\\ProcessedMetric');

        // sort metrics w/ dependent metrics calculated before the metrics that depend on them
        $result = [];
        self::processedMetricDfs($metrics, function ($metricName) use (&$result, $metrics) {
            $result[$metricName] = $metrics[$metricName];
        });
        return $result;
    }
public static function getProcessedMetricsForTable(DataTable $dataTable, Report $report = null)
    {
        /** @var ProcessedMetric[] $metrics */
        $metrics = self::getMetricsForTable($dataTable, $report, 'Piwik\\Plugin\\ProcessedMetric');

        // sort metrics w/ dependent metrics calculated before the metrics that depend on them
        $result = [];
        self::processedMetricDfs($metrics, function ($metricName) use (&$result, $metrics) {
            $result[$metricName] = $metrics[$metricName];
        });
        return $result;
    }
public static function getProcessedMetricsForTable ( DataTable $ dataTable , Report $ report = null ) { /** @var ProcessedMetric[] $metrics */ $ metrics = self :: getMetricsForTable ( $ dataTable , $ report , 'Piwik\\Plugin\\ProcessedMetric' ) ; // sort metrics w/ dependent metrics calculated before the metrics that depend on them $ result = [ ] ; self :: processedMetricDfs ( $ metrics , function ( $ metricName ) use ( & $ result , $ metrics ) { $ result [ $ metricName ] = $ metrics [ $ metricName ] ; } ) ; return $ result ; }
Returns the ProcessedMetrics that should be computed and formatted for a DataTable of a
certain report. The ProcessedMetrics returned are those specified by the Report metadata
as well as the DataTable metadata.

@param DataTable $dataTable
@param Report|null $report
@return ProcessedMetric[]
@api
Returns the ProcessedMetrics that should be computed and formatted for a DataTable of a certain report . The ProcessedMetrics returned are those specified by the Report metadata as well as the DataTable metadata .