diff options
author | matthieu_ <matthieu_@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2007-08-25 00:27:48 +0400 |
---|---|---|
committer | matthieu_ <matthieu_@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2007-08-25 00:27:48 +0400 |
commit | c12bdaa5e95b2f6dba577b3b2c614279f68dc24a (patch) | |
tree | bc955fc3dbc61d4cf2bf0612c770d31c3e6a8666 /modules/DataTable/Row.php | |
parent | 8f7f5857cbe329e88b8104c98be3035f79f7fde4 (diff) |
- Translation
- filter to name the columns
- API for the modules actions, provider, UserCountry, Visitfrquency, visitinterest, time,
- HALF of the api for referers
- improved XML export nwo using PEAR xml serializer
Diffstat (limited to 'modules/DataTable/Row.php')
-rw-r--r-- | modules/DataTable/Row.php | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/modules/DataTable/Row.php b/modules/DataTable/Row.php index f4143904e2..adc3c20665 100644 --- a/modules/DataTable/Row.php +++ b/modules/DataTable/Row.php @@ -80,6 +80,15 @@ class Piwik_DataTable_Row return $this->c[self::DETAILS]; } + public function getDetail( $name ) + { + if(!isset($this->c[self::DETAILS][$name])) + { + return false; + } + return $this->c[self::DETAILS][$name]; + } + /** * @return int|null */ @@ -128,6 +137,11 @@ class Piwik_DataTable_Row $this->c[self::DATATABLE_ASSOCIATED] = $subTable->getId(); } + public function setColumns( $columns ) + { + $this->c[self::COLUMNS] = $columns; + } + public function setColumn($name, $value) { $this->c[self::COLUMNS][$name] = $value; @@ -161,12 +175,6 @@ class Piwik_DataTable_Row */ public function sumRow( $rowToSum ) { -// if( $rowToSum->getIdSubDataTable() != null xor $this->getIdSubDataTable() != null ) -// { -// throw new Exception("Only one of either \$this or \$rowToSum -// has a subTable associated. Not expected."); -// } -// foreach($rowToSum->getColumns() as $name => $value) { if($name != 'label' |