PHP Class Piwik\API\Inconsistencies

Code that handles the case when the 'format_metrics' query parameter value is 'bc' should be removed as well. This code is in API\Request and DataTablePostProcessor. Should be removed before releasing Piwik 3.0.
Show file Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
getPercentMetricsToFormat ( ) In Piwik 2.X and below, the "raw" API would format percent values but no others.

Method Details

getPercentMetricsToFormat() public method

This method returns the list of percent metrics that were returned from the API formatted so we can maintain BC. Used by DataTablePostProcessor.