Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobocoder <anthon.pang@gmail.com>2010-01-30 04:51:09 +0300
committerrobocoder <anthon.pang@gmail.com>2010-01-30 04:51:09 +0300
commit0c65b7c72d8cd425d50f8bf33c550e1de47dae8b (patch)
treedc7907df7d26339598fda423fdc65ae867c3594d /plugins/ExampleUI
parent349741b04d2f8d2955ebbc69a90aa37b7dfb35a7 (diff)
fixes #1122
git-svn-id: http://dev.piwik.org/svn/trunk@1817 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/ExampleUI')
-rw-r--r--plugins/ExampleUI/API.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/ExampleUI/API.php b/plugins/ExampleUI/API.php
index 1a606d0f16..a3cabe9672 100644
--- a/plugins/ExampleUI/API.php
+++ b/plugins/ExampleUI/API.php
@@ -26,7 +26,7 @@ class Piwik_ExampleUI_API
return self::$instance;
}
- function getTemperaturesEvolution($date, $period)
+ static public function getTemperaturesEvolution($date, $period)
{
$period = new Piwik_Period_Range($period, 'last30');
$dateStart = $period->getDateStart()->get('Y-m-d'); // eg. "2009-04-01"
@@ -56,7 +56,7 @@ class Piwik_ExampleUI_API
}
// we generate an array of random server temperatures
- function getTemperatures()
+ static public function getTemperatures()
{
$xAxis = array(
'0h', '1h', '2h', '3h', '4h', '5h', '6h', '7h', '8h', '9h', '10h', '11h',
@@ -75,7 +75,7 @@ class Piwik_ExampleUI_API
return $dataTable;
}
- function getPlanetRatios()
+ static public function getPlanetRatios()
{
$planetRatios = array(
'Mercury' => 0.382,
@@ -93,9 +93,9 @@ class Piwik_ExampleUI_API
return $dataTable;
}
- function getPlanetRatiosWithLogos()
+ static public function getPlanetRatiosWithLogos()
{
- $planetsDataTable = $this->getPlanetRatios();
+ $planetsDataTable = self::getPlanetRatios();
foreach($planetsDataTable->getRows() as $row)
{
$row->addMetadata('logo', "plugins/ExampleUI/images/icons-planet/".strtolower($row->getColumn('label').".png"));