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:
Diffstat (limited to 'plugins/ExampleUI/API.php')
-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"));