diff options
author | benakamoorthi <benaka.moorthi@gmail.com> | 2012-05-27 01:57:42 +0400 |
---|---|---|
committer | benakamoorthi <benaka.moorthi@gmail.com> | 2012-05-27 01:57:42 +0400 |
commit | 355b00438a345fe2bc443b699e864ff46c9d97e8 (patch) | |
tree | 8eebe5b0fe5179b3879a63c2b7416eed3ba5c2ab /core/DataTable/Filter/MetadataCallbackReplace.php | |
parent | f0ffb387356941fa8518b3c546a239cf49c3524a (diff) |
Fixes #2895, #3133, renamed existing report getBrowser to getBrowserVersion, added 3 new reports, getBrowser (browser w/o version), getOSFamily and getDeviceType.
Notes:
* Modified MetadataCallbackReplace & ColumnCallbackReplace so extra columns could be passed to the callback, w/o being replaced.
* Modified UserAgentParser.php to provide operating system family extraction functionality.
git-svn-id: http://dev.piwik.org/svn/trunk@6326 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/DataTable/Filter/MetadataCallbackReplace.php')
-rw-r--r-- | core/DataTable/Filter/MetadataCallbackReplace.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/DataTable/Filter/MetadataCallbackReplace.php b/core/DataTable/Filter/MetadataCallbackReplace.php index f066eb0eae..6d065aa3bc 100644 --- a/core/DataTable/Filter/MetadataCallbackReplace.php +++ b/core/DataTable/Filter/MetadataCallbackReplace.php @@ -19,9 +19,10 @@ */ class Piwik_DataTable_Filter_MetadataCallbackReplace extends Piwik_DataTable_Filter_ColumnCallbackReplace { - public function __construct( $table, $metadataToFilter, $functionToApply, $functionParameters = null ) + public function __construct( $table, $metadataToFilter, $functionToApply, $functionParameters = null, + $extraColumnParameters = array() ) { - parent::__construct($table, $metadataToFilter, $functionToApply, $functionParameters); + parent::__construct($table, $metadataToFilter, $functionToApply, $functionParameters, $extraColumnParameters); } protected function setElementToReplace($row, $metadataToFilter, $newValue) |