diff options
author | diosmosis <benaka@piwik.pro> | 2014-11-06 22:00:10 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-11-07 04:49:22 +0300 |
commit | c1264ec0476fc2e88c29d052e2018990458f814d (patch) | |
tree | 148a599c6c1400df960a72fc1254f14e5f546582 /core/DataTable.php | |
parent | d4e0c79caef3ca17dbad7890a52af9a000f07ee9 (diff) |
Moved processed metrics computation to DataTableGenericFilter, removed new filters & implemented as methods in Report to avoid confusion regarding re-use, allow adding processed metrics as DataTable metadata and use this to rewrite AddProcessedMetrics filter, correct name of Metrics::getMappingFromIdToName function, added placeholder AggregatedMetric class for future, revise Metric/ProcessedMetric hierarchy (add methods for translation/etc.), allow .get API methods to use metadata to automatically figure out which columns to select, get EcommerceOrderWithItemsTest to pass.
Diffstat (limited to 'core/DataTable.php')
-rw-r--r-- | core/DataTable.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/DataTable.php b/core/DataTable.php index 4d308f7d21..089f1a63fa 100644 --- a/core/DataTable.php +++ b/core/DataTable.php @@ -200,6 +200,11 @@ class DataTable implements DataTableInterface, \IteratorAggregate, \ArrayAccess const LABEL_SUMMARY_ROW = -1; /** + * TODO + */ + const EXTRA_PROCESSED_METRICS_METADATA_NAME = 'extra_processed_metrics'; + + /** * Maximum nesting level. */ private static $maximumDepthLevelAllowed = self::MAX_DEPTH_DEFAULT; |