diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-01-30 04:51:09 +0300 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-01-30 04:51:09 +0300 |
commit | 96eea79c6628c8b36ac8528a892a7ba699bbb194 (patch) | |
tree | dc7907df7d26339598fda423fdc65ae867c3594d /plugins/Actions | |
parent | 190431e3a98cc5512c79891c3dd3519e4810a779 (diff) |
fixes #1122
Diffstat (limited to 'plugins/Actions')
-rw-r--r-- | plugins/Actions/API.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/Actions/API.php b/plugins/Actions/API.php index 658d5da13f..ba9c3d1b35 100644 --- a/plugins/Actions/API.php +++ b/plugins/Actions/API.php @@ -29,7 +29,7 @@ class Piwik_Actions_API return self::$instance; } - protected function getDataTable($name, $idSite, $period, $date, $expanded, $idSubtable ) + static protected function getDataTable($name, $idSite, $period, $date, $expanded, $idSubtable ) { Piwik::checkUserHasViewAccess( $idSite ); $archive = Piwik_Archive::build($idSite, $period, $date ); @@ -55,31 +55,31 @@ class Piwik_Actions_API * Backward compatibility. Fallsback to getPageTitles() instead. * @deprecated Deprecated since Piwik 0.5 */ - public function getActions( $idSite, $period, $date, $expanded = false, $idSubtable = false ) + static public function getActions( $idSite, $period, $date, $expanded = false, $idSubtable = false ) { - return $this->getPageTitles( $idSite, $period, $date, $expanded, $idSubtable ); + return self::getPageTitles( $idSite, $period, $date, $expanded, $idSubtable ); } - public function getPageUrls( $idSite, $period, $date, $expanded = false, $idSubtable = false ) + static public function getPageUrls( $idSite, $period, $date, $expanded = false, $idSubtable = false ) { - return $this->getDataTable('Actions_actions_url', $idSite, $period, $date, $expanded, $idSubtable ); + return self::getDataTable('Actions_actions_url', $idSite, $period, $date, $expanded, $idSubtable ); } - public function getPageTitles( $idSite, $period, $date, $expanded = false, $idSubtable = false) + static public function getPageTitles( $idSite, $period, $date, $expanded = false, $idSubtable = false) { - $dataTable = $this->getDataTable('Actions_actions', $idSite, $period, $date, $expanded, $idSubtable); + $dataTable = self::getDataTable('Actions_actions', $idSite, $period, $date, $expanded, $idSubtable); return $dataTable; } - public function getDownloads( $idSite, $period, $date, $expanded = false, $idSubtable = false ) + static public function getDownloads( $idSite, $period, $date, $expanded = false, $idSubtable = false ) { - $dataTable = $this->getDataTable('Actions_downloads', $idSite, $period, $date, $expanded, $idSubtable ); + $dataTable = self::getDataTable('Actions_downloads', $idSite, $period, $date, $expanded, $idSubtable ); return $dataTable; } - public function getOutlinks( $idSite, $period, $date, $expanded = false, $idSubtable = false ) + static public function getOutlinks( $idSite, $period, $date, $expanded = false, $idSubtable = false ) { - $dataTable = $this->getDataTable('Actions_outlink', $idSite, $period, $date, $expanded, $idSubtable ); + $dataTable = self::getDataTable('Actions_outlink', $idSite, $period, $date, $expanded, $idSubtable ); return $dataTable; } } |