diff options
author | sgiehl <stefangiehl@gmail.com> | 2012-05-28 21:29:23 +0400 |
---|---|---|
committer | sgiehl <stefangiehl@gmail.com> | 2012-05-28 21:29:23 +0400 |
commit | 06bb25eb436e6d17d79eb44b286a1d877328142d (patch) | |
tree | f92a56ad52588a20b8bf16eb466ce920c2a65c2b /core/DataTable/Filter/MetadataCallbackReplace.php | |
parent | 90ae9e10229fc517dd1c9f406736cc091b6cf970 (diff) |
added/fixed doc blocks
git-svn-id: http://dev.piwik.org/svn/trunk@6353 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/DataTable/Filter/MetadataCallbackReplace.php')
-rw-r--r-- | core/DataTable/Filter/MetadataCallbackReplace.php | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/core/DataTable/Filter/MetadataCallbackReplace.php b/core/DataTable/Filter/MetadataCallbackReplace.php index 6d065aa3bc..42a41a9348 100644 --- a/core/DataTable/Filter/MetadataCallbackReplace.php +++ b/core/DataTable/Filter/MetadataCallbackReplace.php @@ -19,17 +19,34 @@ */ class Piwik_DataTable_Filter_MetadataCallbackReplace extends Piwik_DataTable_Filter_ColumnCallbackReplace { + /** + * @param Piwik_DataTable $table + * @param array|string $metadataToFilter + * @param callback $functionToApply + * @param null|array $functionParameters + * @param array $extraColumnParameters + */ public function __construct( $table, $metadataToFilter, $functionToApply, $functionParameters = null, $extraColumnParameters = array() ) { parent::__construct($table, $metadataToFilter, $functionToApply, $functionParameters, $extraColumnParameters); } + /** + * @param Piwik_DataTable_Row $row + * @param string $metadataToFilter + * @param mixed $newValue + */ protected function setElementToReplace($row, $metadataToFilter, $newValue) { $row->setMetadata($metadataToFilter, $newValue); } - + + /** + * @param Piwik_DataTable_Row $row + * @param string $metadataToFilter + * @return array|false|mixed + */ protected function getElementToReplace($row, $metadataToFilter) { return $row->getMetadata($metadataToFilter); |