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-02-10 11:14:15 +0300
committerrobocoder <anthon.pang@gmail.com>2010-02-10 11:14:15 +0300
commit6c3373e2048a522b9005506b7ef98df609e5cb36 (patch)
tree252bd657aa53e6fac4690cd8cd6bcd536472c135 /plugins/ExampleUI
parentba61974093d4f7d722170579818fec683bd9a1c3 (diff)
fixes #1122 - per Matt's review
git-svn-id: http://dev.piwik.org/svn/trunk@1832 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 a3cabe9672..8255c1deff 100644
--- a/plugins/ExampleUI/API.php
+++ b/plugins/ExampleUI/API.php
@@ -26,7 +26,7 @@ class Piwik_ExampleUI_API
return self::$instance;
}
- static public function getTemperaturesEvolution($date, $period)
+ 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
- static public function getTemperatures()
+ 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;
}
- static public function getPlanetRatios()
+ public function getPlanetRatios()
{
$planetRatios = array(
'Mercury' => 0.382,
@@ -93,9 +93,9 @@ class Piwik_ExampleUI_API
return $dataTable;
}
- static public function getPlanetRatiosWithLogos()
+ public function getPlanetRatiosWithLogos()
{
- $planetsDataTable = self::getPlanetRatios();
+ $planetsDataTable = $this->getPlanetRatios();
foreach($planetsDataTable->getRows() as $row)
{
$row->addMetadata('logo', "plugins/ExampleUI/images/icons-planet/".strtolower($row->getColumn('label').".png"));